Skip to content

Commit 6883fe6

Browse files
committed
remove test scheme
1 parent b4f4d7c commit 6883fe6

File tree

5 files changed

+28
-161
lines changed

5 files changed

+28
-161
lines changed

QiniuSDK.xcodeproj/xcshareddata/xcschemes/QiniuSDK_Mac.xcscheme

100755100644
Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0730"
3+
LastUpgradeVersion = "1100"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -26,34 +26,27 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
3029
shouldUseLaunchSchemeArgsEnv = "YES">
3130
<Testables>
32-
<TestableReference
33-
skipped = "NO">
34-
<BuildableReference
35-
BuildableIdentifier = "primary"
36-
BlueprintIdentifier = "DF2CDE0919DAC05500CE01FB"
37-
BuildableName = "QiniuSDK_MacTests.xctest"
38-
BlueprintName = "QiniuSDK_MacTests"
39-
ReferencedContainer = "container:QiniuSDK.xcodeproj">
40-
</BuildableReference>
41-
</TestableReference>
4231
</Testables>
43-
<AdditionalOptions>
44-
</AdditionalOptions>
4532
</TestAction>
4633
<LaunchAction
47-
buildConfiguration = "Release"
34+
buildConfiguration = "Debug"
4835
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4936
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
50-
language = ""
5137
launchStyle = "0"
5238
useCustomWorkingDirectory = "NO"
5339
ignoresPersistentStateOnLaunch = "NO"
5440
debugDocumentVersioning = "YES"
5541
debugServiceExtension = "internal"
5642
allowLocationSimulation = "YES">
43+
</LaunchAction>
44+
<ProfileAction
45+
buildConfiguration = "Release"
46+
shouldUseLaunchSchemeArgsEnv = "YES"
47+
savedToolIdentifier = ""
48+
useCustomWorkingDirectory = "NO"
49+
debugDocumentVersioning = "YES">
5750
<MacroExpansion>
5851
<BuildableReference
5952
BuildableIdentifier = "primary"
@@ -63,15 +56,6 @@
6356
ReferencedContainer = "container:QiniuSDK.xcodeproj">
6457
</BuildableReference>
6558
</MacroExpansion>
66-
<AdditionalOptions>
67-
</AdditionalOptions>
68-
</LaunchAction>
69-
<ProfileAction
70-
buildConfiguration = "Release"
71-
shouldUseLaunchSchemeArgsEnv = "YES"
72-
savedToolIdentifier = ""
73-
useCustomWorkingDirectory = "NO"
74-
debugDocumentVersioning = "YES">
7559
</ProfileAction>
7660
<AnalyzeAction
7761
buildConfiguration = "Debug">

QiniuSDK.xcodeproj/xcshareddata/xcschemes/QiniuSDK_MacTests.xcscheme

Lines changed: 0 additions & 56 deletions
This file was deleted.

QiniuSDK.xcodeproj/xcshareddata/xcschemes/QiniuSDK_iOS.xcscheme

100755100644
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "DF2CDE1919DAC08400CE01FB"
34+
BuildableName = "libQiniuSDK_iOS.a"
35+
BlueprintName = "QiniuSDK_iOS"
36+
ReferencedContainer = "container:QiniuSDK.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "DF2CDE1919DAC08400CE01FB"
46-
BuildableName = "libQiniuSDK_iOS.a"
47-
BlueprintName = "QiniuSDK_iOS"
48-
ReferencedContainer = "container:QiniuSDK.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Release"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:QiniuSDK.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

QiniuSDK.xcodeproj/xcshareddata/xcschemes/QiniuSDK_iOSTests.xcscheme

Lines changed: 0 additions & 56 deletions
This file was deleted.

QiniuSDKTests/QNSessionTest.m

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,19 @@ - (void)tearDown {
3535
- (void)testPost {
3636
__block QNResponseInfo *testInfo = nil;
3737
NSData *data = [@"Hello, World!" dataUsingEncoding:NSUTF8StringEncoding];
38-
[_httpManager post:@"http://www.baidu.com" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
38+
[_httpManager post:@"http://www.baidu.com" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
3939
testInfo = info;
40-
}
41-
withProgressBlock:nil
42-
withCancelBlock:nil
43-
withAccess:nil];
40+
} withProgressBlock:nil
41+
withCancelBlock:nil
42+
withAccess:nil];
4443

4544
AGWW_WAIT_WHILE(testInfo == nil, 100.0);
4645
NSLog(@"%@", testInfo);
4746

4847
XCTAssert(testInfo.reqId == nil, @"Pass");
4948

5049
testInfo = nil;
51-
[_httpManager post:@"http://up.qiniu.com" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
50+
[_httpManager post:@"http://up.qiniu.com" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
5251
testInfo = info;
5352
}
5453
withProgressBlock:nil
@@ -60,7 +59,7 @@ - (void)testPost {
6059
XCTAssert(testInfo.reqId, @"Pass");
6160

6261
testInfo = nil;
63-
[_httpManager post:@"http://httpbin.org/status/500" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
62+
[_httpManager post:@"http://httpbin.org/status/500" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
6463
testInfo = info;
6564
}
6665
withProgressBlock:nil
@@ -73,7 +72,7 @@ - (void)testPost {
7372
XCTAssert(testInfo.error != nil, @"Pass");
7473

7574
testInfo = nil;
76-
[_httpManager post:@"http://httpbin.org/status/418" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
75+
[_httpManager post:@"http://httpbin.org/status/418" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
7776
testInfo = info;
7877
}
7978
withProgressBlock:nil
@@ -86,7 +85,7 @@ - (void)testPost {
8685
XCTAssert(testInfo.error != nil, @"Pass");
8786

8887
testInfo = nil;
89-
[_httpManager post:@"http://httpbin.org/status/200" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
88+
[_httpManager post:@"http://httpbin.org/status/200" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
9089

9190
testInfo = info;
9291
}
@@ -111,7 +110,7 @@ - (void)testProxy {
111110
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:proxyDict timeout:60 urlConverter:nil];
112111
NSData *data = [@"Hello, World!" dataUsingEncoding:NSUTF8StringEncoding];
113112
__block QNResponseInfo *testInfo = nil;
114-
[httpManager post:@"http://up123.qiniu.com" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
113+
[httpManager post:@"http://up123.qiniu.com" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
115114
testInfo = info;
116115
}
117116
withProgressBlock:nil
@@ -131,7 +130,7 @@ - (void)testUrlConvert {
131130
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:nil timeout:60 urlConverter:c];
132131
NSData *data = [@"Hello, World!" dataUsingEncoding:NSUTF8StringEncoding];
133132
__block QNResponseInfo *testInfo = nil;
134-
[httpManager post:@"http://upnono.qiniu.com" withData:data withParams:nil withHeaders:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
133+
[httpManager post:@"http://upnono.qiniu.com" withData:data withParams:nil withHeaders:nil withTaskIdentifier:nil withCompleteBlock:^(QNResponseInfo *info, NSDictionary *resp) {
135134
testInfo = info;
136135
}
137136
withProgressBlock:nil

0 commit comments

Comments
 (0)