OLD | NEW |
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 "chrome/browser/google_apis/test_util.h" | 5 #include "google_apis/drive/test_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/json/json_file_value_serializer.h" | 8 #include "base/json/json_file_value_serializer.h" |
9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "chrome/browser/google_apis/drive_api_parser.h" | 18 #include "google_apis/drive/drive_api_parser.h" |
19 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 19 #include "google_apis/drive/gdata_wapi_parser.h" |
20 #include "chrome/browser/google_apis/gdata_wapi_requests.h" | 20 #include "google_apis/drive/gdata_wapi_requests.h" |
21 #include "net/test/embedded_test_server/http_request.h" | 21 #include "net/test/embedded_test_server/http_request.h" |
22 #include "net/test/embedded_test_server/http_response.h" | 22 #include "net/test/embedded_test_server/http_response.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace google_apis { | 25 namespace google_apis { |
26 namespace test_util { | 26 namespace test_util { |
27 | 27 |
28 bool RemovePrefix(const std::string& input, | 28 bool RemovePrefix(const std::string& input, |
29 const std::string& prefix, | 29 const std::string& prefix, |
30 std::string* output) { | 30 std::string* output) { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 return result; | 174 return result; |
175 } | 175 } |
176 | 176 |
177 void TestGetContentCallback::OnGetContent(google_apis::GDataErrorCode error, | 177 void TestGetContentCallback::OnGetContent(google_apis::GDataErrorCode error, |
178 scoped_ptr<std::string> data) { | 178 scoped_ptr<std::string> data) { |
179 data_.push_back(data.release()); | 179 data_.push_back(data.release()); |
180 } | 180 } |
181 | 181 |
182 } // namespace test_util | 182 } // namespace test_util |
183 } // namespace google_apis | 183 } // namespace google_apis |
OLD | NEW |