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

Side by Side Diff: google_apis/drive/gdata_wapi_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/gdata_wapi_requests.cc ('k') | google_apis/drive/gdata_wapi_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) 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"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/json/json_reader.h" 12 #include "base/json/json_reader.h"
13 #include "base/json/json_writer.h" 13 #include "base/json/json_writer.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/browser/google_apis/dummy_auth_service.h" 19 #include "google_apis/drive/dummy_auth_service.h"
20 #include "chrome/browser/google_apis/gdata_wapi_parser.h" 20 #include "google_apis/drive/gdata_wapi_parser.h"
21 #include "chrome/browser/google_apis/gdata_wapi_requests.h" 21 #include "google_apis/drive/gdata_wapi_requests.h"
22 #include "chrome/browser/google_apis/gdata_wapi_url_generator.h" 22 #include "google_apis/drive/gdata_wapi_url_generator.h"
23 #include "chrome/browser/google_apis/request_sender.h" 23 #include "google_apis/drive/request_sender.h"
24 #include "chrome/browser/google_apis/test_util.h" 24 #include "google_apis/drive/test_util.h"
25 #include "net/base/escape.h" 25 #include "net/base/escape.h"
26 #include "net/test/embedded_test_server/embedded_test_server.h" 26 #include "net/test/embedded_test_server/embedded_test_server.h"
27 #include "net/test/embedded_test_server/http_request.h" 27 #include "net/test/embedded_test_server/http_request.h"
28 #include "net/test/embedded_test_server/http_response.h" 28 #include "net/test/embedded_test_server/http_response.h"
29 #include "net/url_request/url_request_test_util.h" 29 #include "net/url_request/url_request_test_util.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 31
32 namespace google_apis { 32 namespace google_apis {
33 33
34 namespace { 34 namespace {
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 EXPECT_EQ(HTTP_SUCCESS, result_code); 1587 EXPECT_EQ(HTTP_SUCCESS, result_code);
1588 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method); 1588 EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
1589 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url); 1589 EXPECT_EQ(kTestDownloadPathPrefix + kTestId, http_request_.relative_url);
1590 EXPECT_EQ(kDownloadedFilePath, temp_file); 1590 EXPECT_EQ(kDownloadedFilePath, temp_file);
1591 1591
1592 const std::string expected_contents = kTestId + kTestId + kTestId; 1592 const std::string expected_contents = kTestId + kTestId + kTestId;
1593 EXPECT_EQ(expected_contents, contents); 1593 EXPECT_EQ(expected_contents, contents);
1594 } 1594 }
1595 1595
1596 } // namespace google_apis 1596 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/gdata_wapi_requests.cc ('k') | google_apis/drive/gdata_wapi_url_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698