| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*
- * Copyright (c) 2021, Psiphon Inc.
- * All rights reserved.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- #import <XCTest/XCTest.h>
- #import "PsiphonTunnel.h"
- @interface PsiphonTunnelDelegate : NSObject <TunneledAppDelegate>
- @end
- @implementation PsiphonTunnelDelegate
- - (NSString * _Nullable)getPsiphonConfig {
- return @"";
- }
- @end
- @interface PsiphonTunnelTests : XCTestCase
- @property PsiphonTunnelDelegate *psiphonTunnelDelegate;
- @end
- @implementation PsiphonTunnelTests
- - (void)setUp {
- [super setUp];
- // Put setup code here. This method is called before the invocation of each test method in the class.
- self.psiphonTunnelDelegate = [[PsiphonTunnelDelegate alloc] init];
- }
- - (void)tearDown {
- // Put teardown code here. This method is called after the invocation of each test method in the class.
- [super tearDown];
- }
- - (void)testExample {
- // This is an example of a functional test case.
- // Use XCTAssert and related functions to verify your tests produce the correct results.
-
- PsiphonTunnel *tunnel = [PsiphonTunnel newPsiphonTunnel:self.psiphonTunnelDelegate];
- XCTAssertNotNil(tunnel);
- }
- - (void)testPerformanceExample {
- // This is an example of a performance test case.
- [self measureBlock:^{
- // Put the code you want to measure the time of here.
- }];
- }
- @end
|