| 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 "chrome/browser/google_apis/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.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/pending_task.h" | 12 #include "base/pending_task.h" |
| 13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/strings/string_split.h" | 17 #include "base/strings/string_split.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "chrome/browser/google_apis/drive_api_parser.h" | 19 #include "chrome/browser/google_apis/drive_api_parser.h" |
| 20 #include "chrome/browser/google_apis/gdata_wapi_operations.h" | 20 #include "chrome/browser/google_apis/gdata_wapi_operations.h" |
| 21 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | 21 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 22 #include "chrome/browser/google_apis/test_server/http_request.h" | |
| 23 #include "chrome/browser/google_apis/test_server/http_response.h" | |
| 24 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
| 25 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "net/test/embedded_test_server/http_request.h" |
| 25 #include "net/test/embedded_test_server/http_response.h" |
| 26 | 26 |
| 27 namespace google_apis { | 27 namespace google_apis { |
| 28 namespace test_util { | 28 namespace test_util { |
| 29 | 29 |
| 30 // This class is used to monitor if any task is posted to a message loop. | 30 // This class is used to monitor if any task is posted to a message loop. |
| 31 class TaskObserver : public MessageLoop::TaskObserver { | 31 class TaskObserver : public MessageLoop::TaskObserver { |
| 32 public: | 32 public: |
| 33 TaskObserver() : posted_(false) {} | 33 TaskObserver() : posted_(false) {} |
| 34 virtual ~TaskObserver() {} | 34 virtual ~TaskObserver() {} |
| 35 | 35 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 return result; | 242 return result; |
| 243 } | 243 } |
| 244 | 244 |
| 245 void TestGetContentCallback::OnGetContent(google_apis::GDataErrorCode error, | 245 void TestGetContentCallback::OnGetContent(google_apis::GDataErrorCode error, |
| 246 scoped_ptr<std::string> data) { | 246 scoped_ptr<std::string> data) { |
| 247 data_.push_back(data.release()); | 247 data_.push_back(data.release()); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace test_util | 250 } // namespace test_util |
| 251 } // namespace google_apis | 251 } // namespace google_apis |
| OLD | NEW |