mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			519 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			519 B
		
	
	
	
		
			Objective-C
		
	
#import <XCTest/XCTest.h>
 | 
						|
#import "EncodedAudioPacket.h"
 | 
						|
#import "TestUtil.h"
 | 
						|
 | 
						|
@interface AudioFrameTest : XCTestCase
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
@implementation AudioFrameTest
 | 
						|
-(void) testTrivial {
 | 
						|
    NSData* d2 = [NSMutableData dataWithLength:6];
 | 
						|
    
 | 
						|
    testThrows([EncodedAudioPacket encodedAudioPacketWithAudioData:nil andSequenceNumber:0]);
 | 
						|
    EncodedAudioPacket* p2 = [EncodedAudioPacket encodedAudioPacketWithAudioData:d2 andSequenceNumber:0xFF00];
 | 
						|
    test([p2 audioData] == d2);
 | 
						|
    test([p2 sequenceNumber] == 0xFF00);
 | 
						|
}
 | 
						|
@end
 |