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.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | // | 
					
						
							|  |  |  | //  Copyright (c) 2018 Open Whisper Systems. All rights reserved. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import XCTest | 
					
						
							|  |  |  | import SignalServiceKit | 
					
						
							|  |  |  | import CocoaLumberjack | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @objc | 
					
						
							|  |  |  | public class SSKBaseTestSwift: XCTestCase { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @objc | 
					
						
							|  |  |  |     public override func setUp() { | 
					
						
							|  |  |  |         super.setUp() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         DDLog.add(DDTTYLogger.sharedInstance) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         ClearCurrentAppContextForTests() | 
					
						
							|  |  |  |         SetCurrentAppContext(TestAppContext()) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         MockSSKEnvironment.activate() | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @objc | 
					
						
							|  |  |  |     public override func tearDown() { | 
					
						
							|  |  |  |         super.tearDown() | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @objc | 
					
						
							|  |  |  |     public func read(_ block: @escaping (YapDatabaseReadTransaction) -> Swift.Void) { | 
					
						
							|  |  |  |         return OWSPrimaryStorage.shared().dbReadConnection.read(block) | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @objc | 
					
						
							|  |  |  |     public func readWrite(_ block: @escaping (YapDatabaseReadWriteTransaction) -> Swift.Void) { | 
					
						
							|  |  |  |         return OWSPrimaryStorage.shared().dbReadWriteConnection.readWrite(block) | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |