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

Side by Side Diff: google_apis/drive/drive_api_requests_unittest.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/drive_api_url_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/google_apis/drive_api_parser.h" 13 #include "google_apis/drive/drive_api_parser.h"
14 #include "chrome/browser/google_apis/drive_api_requests.h" 14 #include "google_apis/drive/drive_api_requests.h"
15 #include "chrome/browser/google_apis/drive_api_url_generator.h" 15 #include "google_apis/drive/drive_api_url_generator.h"
16 #include "chrome/browser/google_apis/dummy_auth_service.h" 16 #include "google_apis/drive/dummy_auth_service.h"
17 #include "chrome/browser/google_apis/request_sender.h" 17 #include "google_apis/drive/request_sender.h"
18 #include "chrome/browser/google_apis/test_util.h" 18 #include "google_apis/drive/test_util.h"
19 #include "net/test/embedded_test_server/embedded_test_server.h" 19 #include "net/test/embedded_test_server/embedded_test_server.h"
20 #include "net/test/embedded_test_server/http_request.h" 20 #include "net/test/embedded_test_server/http_request.h"
21 #include "net/test/embedded_test_server/http_response.h" 21 #include "net/test/embedded_test_server/http_response.h"
22 #include "net/url_request/url_request_test_util.h" 22 #include "net/url_request/url_request_test_util.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace google_apis { 25 namespace google_apis {
26 26
27 namespace { 27 namespace {
28 28
(...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 EXPECT_EQ(HTTP_SUCCESS, result_code); 1591 EXPECT_EQ(HTTP_SUCCESS, result_code);
1592 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method); 1592 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
1593 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url); 1593 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url);
1594 EXPECT_EQ(kDownloadedFilePath, temp_file); 1594 EXPECT_EQ(kDownloadedFilePath, temp_file);
1595 1595
1596 const std::string expected_contents = kTestId + kTestId + kTestId; 1596 const std::string expected_contents = kTestId + kTestId + kTestId;
1597 EXPECT_EQ(expected_contents, contents); 1597 EXPECT_EQ(expected_contents, contents);
1598 } 1598 }
1599 1599
1600 } // namespace google_apis 1600 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_requests.cc ('k') | google_apis/drive/drive_api_url_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698