OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" | 5 #include "chrome/browser/sync_file_system/drive_backend_v1/fake_drive_service_he
lper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.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/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/google_apis/drive_api_parser.h" | |
13 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
14 #include "chrome/browser/sync_file_system/drive_backend_v1/api_util.h" | 12 #include "chrome/browser/sync_file_system/drive_backend_v1/api_util.h" |
15 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" | 13 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
16 #include "chrome/browser/sync_file_system/sync_status_code.h" | 14 #include "chrome/browser/sync_file_system/sync_status_code.h" |
17 #include "content/public/test/test_browser_thread.h" | 15 #include "content/public/test/test_browser_thread.h" |
| 16 #include "google_apis/drive/drive_api_parser.h" |
| 17 #include "google_apis/drive/gdata_wapi_parser.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "webkit/browser/fileapi/file_system_url.h" | 19 #include "webkit/browser/fileapi/file_system_url.h" |
20 | 20 |
21 #define FPL(path) FILE_PATH_LITERAL(path) | 21 #define FPL(path) FILE_PATH_LITERAL(path) |
22 | 22 |
23 using google_apis::AboutResource; | 23 using google_apis::AboutResource; |
24 using google_apis::GDataErrorCode; | 24 using google_apis::GDataErrorCode; |
25 using google_apis::ResourceEntry; | 25 using google_apis::ResourceEntry; |
26 using google_apis::ResourceList; | 26 using google_apis::ResourceList; |
27 | 27 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 const std::string& content) { | 286 const std::string& content) { |
287 base::FilePath temp_file; | 287 base::FilePath temp_file; |
288 EXPECT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir_, &temp_file)); | 288 EXPECT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir_, &temp_file)); |
289 EXPECT_EQ(static_cast<int>(content.size()), | 289 EXPECT_EQ(static_cast<int>(content.size()), |
290 file_util::WriteFile(temp_file, content.data(), content.size())); | 290 file_util::WriteFile(temp_file, content.data(), content.size())); |
291 return temp_file; | 291 return temp_file; |
292 } | 292 } |
293 | 293 |
294 } // namespace drive_backend | 294 } // namespace drive_backend |
295 } // namespace sync_file_system | 295 } // namespace sync_file_system |
OLD | NEW |