| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/fake_drive_service_helpe
r.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helpe
r.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/sync_file_system/sync_file_system_test_util.h" | 12 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" |
| 13 #include "chrome/browser/sync_file_system/sync_status_code.h" | 13 #include "chrome/browser/sync_file_system/sync_status_code.h" |
| 14 #include "content/public/test/test_browser_thread.h" | |
| 15 #include "google_apis/drive/drive_api_parser.h" | 14 #include "google_apis/drive/drive_api_parser.h" |
| 16 #include "google_apis/drive/gdata_wapi_parser.h" | 15 #include "google_apis/drive/gdata_wapi_parser.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "webkit/browser/fileapi/file_system_url.h" | 17 #include "webkit/browser/fileapi/file_system_url.h" |
| 19 | 18 |
| 20 #define FPL(path) FILE_PATH_LITERAL(path) | 19 #define FPL(path) FILE_PATH_LITERAL(path) |
| 21 | 20 |
| 22 using google_apis::AboutResource; | 21 using google_apis::AboutResource; |
| 23 using google_apis::GDataErrorCode; | 22 using google_apis::GDataErrorCode; |
| 24 using google_apis::ResourceEntry; | 23 using google_apis::ResourceEntry; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 const std::string& content) { | 343 const std::string& content) { |
| 345 base::FilePath temp_file; | 344 base::FilePath temp_file; |
| 346 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file)); | 345 EXPECT_TRUE(base::CreateTemporaryFileInDir(temp_dir_, &temp_file)); |
| 347 EXPECT_EQ(static_cast<int>(content.size()), | 346 EXPECT_EQ(static_cast<int>(content.size()), |
| 348 file_util::WriteFile(temp_file, content.data(), content.size())); | 347 file_util::WriteFile(temp_file, content.data(), content.size())); |
| 349 return temp_file; | 348 return temp_file; |
| 350 } | 349 } |
| 351 | 350 |
| 352 } // namespace drive_backend | 351 } // namespace drive_backend |
| 353 } // namespace sync_file_system | 352 } // namespace sync_file_system |
| OLD | NEW |