mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
22 lines
554 B
Swift
22 lines
554 B
Swift
import CoreMedia
|
|
import Foundation
|
|
import Testing
|
|
|
|
@testable import HaishinKit
|
|
|
|
@Suite struct CMSampleBufferExtensionTests {
|
|
@Test func isNotSync() {
|
|
if let video1 = CMVideoSampleBufferFactory.makeSampleBuffer(width: 100, height: 100) {
|
|
video1.sampleAttachments[0][.notSync] = 1
|
|
} else {
|
|
Issue.record()
|
|
}
|
|
|
|
if let video2 = CMVideoSampleBufferFactory.makeSampleBuffer(width: 100, height: 100) {
|
|
#expect(!video2.isNotSync)
|
|
} else {
|
|
Issue.record()
|
|
}
|
|
}
|
|
}
|