Added proxy tests to iphone test target
Remove debugging logs
Showing
4 changed files
with
3 additions
and
3 deletions
| @@ -1196,7 +1196,7 @@ static NSError *ASITooMuchRedirectionError; | @@ -1196,7 +1196,7 @@ static NSError *ASITooMuchRedirectionError; | ||
| 1196 | [self setProxyAuthenticationRetryCount:[self proxyAuthenticationRetryCount]+1]; | 1196 | [self setProxyAuthenticationRetryCount:[self proxyAuthenticationRetryCount]+1]; |
| 1197 | 1197 | ||
| 1198 | if (newCredentials && proxyAuthentication && request) { | 1198 | if (newCredentials && proxyAuthentication && request) { |
| 1199 | - NSLog(@"%@",newCredentials); | 1199 | + |
| 1200 | // Apply whatever credentials we've built up to the old request | 1200 | // Apply whatever credentials we've built up to the old request |
| 1201 | if (CFHTTPMessageApplyCredentialDictionary(request, proxyAuthentication, (CFMutableDictionaryRef)newCredentials, NULL)) { | 1201 | if (CFHTTPMessageApplyCredentialDictionary(request, proxyAuthentication, (CFMutableDictionaryRef)newCredentials, NULL)) { |
| 1202 | 1202 |
| @@ -25,7 +25,7 @@ static NSString *proxyPassword = @""; | @@ -25,7 +25,7 @@ static NSString *proxyPassword = @""; | ||
| 25 | ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; | 25 | ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; |
| 26 | [request setPACurl:[NSURL URLWithString:pacurl]]; | 26 | [request setPACurl:[NSURL URLWithString:pacurl]]; |
| 27 | [request start]; | 27 | [request start]; |
| 28 | - NSLog(@"%@",[request proxyHost]); | 28 | + |
| 29 | BOOL success = [[request proxyHost] isEqualToString:@"proxy1.apple.com"]; | 29 | BOOL success = [[request proxyHost] isEqualToString:@"proxy1.apple.com"]; |
| 30 | GHAssertTrue(success,@"Failed to use the correct proxy"); | 30 | GHAssertTrue(success,@"Failed to use the correct proxy"); |
| 31 | 31 | ||
| @@ -40,7 +40,7 @@ static NSString *proxyPassword = @""; | @@ -40,7 +40,7 @@ static NSString *proxyPassword = @""; | ||
| 40 | // To run this test, specify the pac script above in your network settings | 40 | // To run this test, specify the pac script above in your network settings |
| 41 | ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; | 41 | ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; |
| 42 | [request start]; | 42 | [request start]; |
| 43 | - NSLog(@"%@",[request proxyHost]); | 43 | + |
| 44 | BOOL success = [[request proxyHost] isEqualToString:@"proxy1.apple.com"]; | 44 | BOOL success = [[request proxyHost] isEqualToString:@"proxy1.apple.com"]; |
| 45 | GHAssertTrue(success,@"Failed to use the correct proxy"); | 45 | GHAssertTrue(success,@"Failed to use the correct proxy"); |
| 46 | 46 |
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
-
Please register or login to post a comment