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.
		
		
		
		
		
			
		
			
				
	
	
		
			24 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			24 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Objective-C
		
	
#import <Foundation/Foundation.h>
 | 
						|
#import "DiscardingLog.h"
 | 
						|
#import "Release.h"
 | 
						|
 | 
						|
 | 
						|
NSObject* churnLock(void);
 | 
						|
bool _testChurnHelper(int (^condition)(), NSTimeInterval delay);
 | 
						|
 | 
						|
#define testPhoneNumber1 [PhoneNumber phoneNumberFromE164:@"+19027777777"]
 | 
						|
#define testPhoneNumber2 [PhoneNumber phoneNumberFromE164:@"+19028888888"]
 | 
						|
 | 
						|
#define test(expressionExpectedToBeTrue) XCTAssert(expressionExpectedToBeTrue, @"")
 | 
						|
#define testThrows(expressionExpectedToThrow) XCTAssertThrows(expressionExpectedToThrow, @"")
 | 
						|
#define testDoesNotThrow(expressionExpectedToNotThrow) expressionExpectedToNotThrow
 | 
						|
#define testEnv [Release unitTestEnvironment:@[]]
 | 
						|
#define testEnvWith(options) [Release unitTestEnvironment:(@[options])]
 | 
						|
#define testChurnUntil(condition, timeout) test(_testChurnHelper(^int{ return condition; }, timeout))
 | 
						|
#define testChurnAndConditionMustStayTrue(condition, timeout) test(!_testChurnHelper(^int{ return !(condition); }, timeout))
 | 
						|
 | 
						|
NSData* increasingData(NSUInteger n);
 | 
						|
NSData* increasingDataFrom(NSUInteger offset, NSUInteger n);
 | 
						|
NSData* sineWave(double frequency, double sampleRate, NSUInteger sampleCount);
 | 
						|
NSData* generatePseudoRandomData(NSUInteger length);
 |