Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: ios/web/public/test/http_server_inttest.mm

Issue 2898733003: Split up ios/web:test_support. (Closed)
Patch Set: don't break downstream clients Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Foundation/Foundation.h> 5 #import <Foundation/Foundation.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
11 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
12 #import "base/test/ios/wait_util.h" 12 #import "base/test/ios/wait_util.h"
13 #import "ios/web/public/test/http_server.h" 13 #import "ios/web/public/test/http_server/http_server.h"
14 #import "ios/web/public/test/response_providers/string_response_provider.h" 14 #import "ios/web/public/test/http_server/string_response_provider.h"
15 #import "ios/web/test/web_int_test.h" 15 #import "ios/web/test/web_int_test.h"
16 #import "net/base/mac/url_conversions.h" 16 #import "net/base/mac/url_conversions.h"
17 #include "net/http/http_response_headers.h" 17 #include "net/http/http_response_headers.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #import "testing/gtest_mac.h" 19 #import "testing/gtest_mac.h"
20 20
21 // A test fixture for verifying the behavior of web::test::HttpServer. 21 // A test fixture for verifying the behavior of web::test::HttpServer.
22 typedef web::WebIntTest HttpServerTest; 22 typedef web::WebIntTest HttpServerTest;
23 23
24 // Tests that a web::test::HttpServer can be started and can send and receive 24 // Tests that a web::test::HttpServer can be started and can send and receive
(...skipping 16 matching lines...) Expand all
41 NSURL* url = net::NSURLWithGURL(server.MakeUrl("http://whatever")); 41 NSURL* url = net::NSURLWithGURL(server.MakeUrl("http://whatever"));
42 NSURLSessionDataTask* data_task = 42 NSURLSessionDataTask* data_task =
43 [[NSURLSession sharedSession] dataTaskWithURL:url 43 [[NSURLSession sharedSession] dataTaskWithURL:url
44 completionHandler:completion_handler]; 44 completionHandler:completion_handler];
45 [data_task resume]; 45 [data_task resume];
46 base::test::ios::WaitUntilCondition(^bool() { 46 base::test::ios::WaitUntilCondition(^bool() {
47 return page_result; 47 return page_result;
48 }); 48 });
49 EXPECT_NSEQ(page_result, base::SysUTF8ToNSString(kHelloWorld)); 49 EXPECT_NSEQ(page_result, base::SysUTF8ToNSString(kHelloWorld));
50 } 50 }
OLDNEW
« no previous file with comments | « ios/web/public/test/http_server/string_response_provider.mm ('k') | ios/web/public/test/http_server_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698