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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <algorithm> 5 #include <algorithm>
6 #include <map> 6 #include <map>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 virtual void SetUp() OVERRIDE { 48 virtual void SetUp() OVERRIDE {
49 profile_.reset(new TestingProfile); 49 profile_.reset(new TestingProfile);
50 50
51 request_context_getter_ = new net::TestURLRequestContextGetter( 51 request_context_getter_ = new net::TestURLRequestContextGetter(
52 message_loop_.message_loop_proxy()); 52 message_loop_.message_loop_proxy());
53 53
54 request_sender_.reset(new RequestSender(profile_.get(), 54 request_sender_.reset(new RequestSender(profile_.get(),
55 request_context_getter_.get(), 55 request_context_getter_.get(),
56 message_loop_.message_loop_proxy(),
56 std::vector<std::string>(), 57 std::vector<std::string>(),
57 kTestUserAgent)); 58 kTestUserAgent));
58 request_sender_->auth_service()->set_access_token_for_testing( 59 request_sender_->auth_service()->set_access_token_for_testing(
59 kTestGDataAuthToken); 60 kTestGDataAuthToken);
60 61
61 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 62 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
62 63
63 ASSERT_TRUE(test_server_.InitializeAndWaitUntilReady()); 64 ASSERT_TRUE(test_server_.InitializeAndWaitUntilReady());
64 test_server_.RegisterRequestHandler( 65 test_server_.RegisterRequestHandler(
65 base::Bind(&test_util::HandleDownloadFileRequest, 66 base::Bind(&test_util::HandleDownloadFileRequest,
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 EXPECT_EQ(HTTP_SUCCESS, result_code); 1592 EXPECT_EQ(HTTP_SUCCESS, result_code);
1592 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method); 1593 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
1593 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url); 1594 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url);
1594 EXPECT_EQ(kDownloadedFilePath, temp_file); 1595 EXPECT_EQ(kDownloadedFilePath, temp_file);
1595 1596
1596 const std::string expected_contents = kTestId + kTestId + kTestId; 1597 const std::string expected_contents = kTestId + kTestId + kTestId;
1597 EXPECT_EQ(expected_contents, contents); 1598 EXPECT_EQ(expected_contents, contents);
1598 } 1599 }
1599 1600
1600 } // namespace google_apis 1601 } // namespace google_apis
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698