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

Side by Side Diff: ios/web/webui/url_fetcher_block_adapter_unittest.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: add missing #import Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ios/web/webui/url_fetcher_block_adapter.h" 5 #import "ios/web/webui/url_fetcher_block_adapter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "net/url_request/test_url_fetcher_factory.h" 13 #include "net/url_request/test_url_fetcher_factory.h"
14 #include "net/url_request/url_request_status.h" 14 #include "net/url_request/url_request_status.h"
15 #include "net/url_request/url_request_test_util.h" 15 #include "net/url_request/url_request_test_util.h"
16 #include "testing/gtest_mac.h" 16 #import "testing/gtest_mac.h"
17 #include "testing/platform_test.h" 17 #include "testing/platform_test.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace web { 20 namespace web {
21 21
22 // Test fixture for URLFetcherBlockAdapter. 22 // Test fixture for URLFetcherBlockAdapter.
23 class URLFetcherBlockAdapterTest : public PlatformTest { 23 class URLFetcherBlockAdapterTest : public PlatformTest {
24 protected: 24 protected:
25 // Required for base::MessageLoop::current(). 25 // Required for base::MessageLoop::current().
26 base::MessageLoopForUI loop_; 26 base::MessageLoopForUI loop_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 std::string response; 62 std::string response;
63 EXPECT_TRUE(ReadFileToString(favicon_path, &response)); 63 EXPECT_TRUE(ReadFileToString(favicon_path, &response));
64 net::FakeURLFetcher fake_fetcher(test_url, &web_ui_fetcher, response, 64 net::FakeURLFetcher fake_fetcher(test_url, &web_ui_fetcher, response,
65 net::HTTP_OK, 65 net::HTTP_OK,
66 net::URLRequestStatus::SUCCESS); 66 net::URLRequestStatus::SUCCESS);
67 fake_fetcher.Start(); 67 fake_fetcher.Start();
68 base::RunLoop().RunUntilIdle(); 68 base::RunLoop().RunUntilIdle();
69 } 69 }
70 70
71 } // namespace web 71 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/webui/url_fetcher_block_adapter.mm ('k') | ios/web/webui/web_ui_ios_data_source_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698