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

Side by Side Diff: chrome/browser/google_apis/drive_api_requests_unittest.cc

Issue 18742002: Remove direct reference to GetBlockingPool() in c/b/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix + rebase. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 virtual void SetUp() OVERRIDE { 54 virtual void SetUp() OVERRIDE {
55 profile_.reset(new TestingProfile); 55 profile_.reset(new TestingProfile);
56 56
57 request_context_getter_ = new net::TestURLRequestContextGetter( 57 request_context_getter_ = new net::TestURLRequestContextGetter(
58 message_loop_.message_loop_proxy()); 58 message_loop_.message_loop_proxy());
59 59
60 request_sender_.reset(new RequestSender(profile_.get(), 60 request_sender_.reset(new RequestSender(profile_.get(),
61 request_context_getter_.get(), 61 request_context_getter_.get(),
62 message_loop_.message_loop_proxy(),
62 std::vector<std::string>(), 63 std::vector<std::string>(),
63 kTestUserAgent)); 64 kTestUserAgent));
64 request_sender_->auth_service()->set_access_token_for_testing( 65 request_sender_->auth_service()->set_access_token_for_testing(
65 kTestDriveApiAuthToken); 66 kTestDriveApiAuthToken);
66 67
67 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 68 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
68 69
69 ASSERT_TRUE(test_server_.InitializeAndWaitUntilReady()); 70 ASSERT_TRUE(test_server_.InitializeAndWaitUntilReady());
70 test_server_.RegisterRequestHandler( 71 test_server_.RegisterRequestHandler(
71 base::Bind(&DriveApiRequestsTest::HandleChildrenDeleteRequest, 72 base::Bind(&DriveApiRequestsTest::HandleChildrenDeleteRequest,
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 EXPECT_EQ(HTTP_SUCCESS, result_code); 1389 EXPECT_EQ(HTTP_SUCCESS, result_code);
1389 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method); 1390 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
1390 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url); 1391 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url);
1391 EXPECT_EQ(kDownloadedFilePath, temp_file); 1392 EXPECT_EQ(kDownloadedFilePath, temp_file);
1392 1393
1393 const std::string expected_contents = kTestId + kTestId + kTestId; 1394 const std::string expected_contents = kTestId + kTestId + kTestId;
1394 EXPECT_EQ(expected_contents, contents); 1395 EXPECT_EQ(expected_contents, contents);
1395 } 1396 }
1396 1397
1397 } // namespace google_apis 1398 } // namespace google_apis
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698