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

Side by Side Diff: chrome/browser/printing/cloud_print/privet_http_unittest.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/printing/cloud_print/privet_http.h" 5 #include "chrome/browser/printing/cloud_print/privet_http.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 #endif // ENABLE_PRINT_PREVIEW 1032 #endif // ENABLE_PRINT_PREVIEW
1033 1033
1034 class PrivetHttpWithServerTest : public ::testing::Test, 1034 class PrivetHttpWithServerTest : public ::testing::Test,
1035 public PrivetURLFetcher::Delegate { 1035 public PrivetURLFetcher::Delegate {
1036 protected: 1036 protected:
1037 PrivetHttpWithServerTest() 1037 PrivetHttpWithServerTest()
1038 : thread_bundle_(content::TestBrowserThreadBundle::REAL_IO_THREAD) {} 1038 : thread_bundle_(content::TestBrowserThreadBundle::REAL_IO_THREAD) {}
1039 1039
1040 void SetUp() override { 1040 void SetUp() override {
1041 context_getter_ = new net::TestURLRequestContextGetter( 1041 context_getter_ = new net::TestURLRequestContextGetter(
1042 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); 1042 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
1043 1043
1044 server_.reset(new EmbeddedTestServer(EmbeddedTestServer::TYPE_HTTP)); 1044 server_.reset(new EmbeddedTestServer(EmbeddedTestServer::TYPE_HTTP));
1045 ASSERT_TRUE(server_->Start()); 1045 ASSERT_TRUE(server_->Start());
1046 1046
1047 base::FilePath test_data_dir; 1047 base::FilePath test_data_dir;
1048 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_data_dir)); 1048 ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_data_dir));
1049 server_->ServeFilesFromDirectory( 1049 server_->ServeFilesFromDirectory(
1050 test_data_dir.Append(FILE_PATH_LITERAL("chrome/test/data"))); 1050 test_data_dir.Append(FILE_PATH_LITERAL("chrome/test/data")));
1051 1051
1052 client_.reset(new PrivetHTTPClientImpl("test", server_->host_port_pair(), 1052 client_.reset(new PrivetHTTPClientImpl("test", server_->host_port_pair(),
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 base::Closure quit_; 1116 base::Closure quit_;
1117 }; 1117 };
1118 1118
1119 TEST_F(PrivetHttpWithServerTest, HttpServer) { 1119 TEST_F(PrivetHttpWithServerTest, HttpServer) {
1120 EXPECT_TRUE(Run()); 1120 EXPECT_TRUE(Run());
1121 } 1121 }
1122 1122
1123 } // namespace 1123 } // namespace
1124 1124
1125 } // namespace cloud_print 1125 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/printing/cloud_print/privet_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698