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/chromeos/drive/sync_client.h" | 5 #include "chrome/browser/chromeos/drive/sync_client.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
16 #include "chrome/browser/chromeos/drive/change_list_loader.h" | 16 #include "chrome/browser/chromeos/drive/change_list_loader.h" |
17 #include "chrome/browser/chromeos/drive/drive.pb.h" | 17 #include "chrome/browser/chromeos/drive/drive.pb.h" |
18 #include "chrome/browser/chromeos/drive/drive_test_util.h" | 18 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
19 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 19 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
20 #include "chrome/browser/chromeos/drive/file_cache.h" | 20 #include "chrome/browser/chromeos/drive/file_cache.h" |
21 #include "chrome/browser/chromeos/drive/file_change.h" | 21 #include "chrome/browser/chromeos/drive/file_change.h" |
22 #include "chrome/browser/chromeos/drive/file_system/move_operation.h" | 22 #include "chrome/browser/chromeos/drive/file_system/move_operation.h" |
23 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" | 23 #include "chrome/browser/chromeos/drive/file_system/operation_delegate.h" |
24 #include "chrome/browser/chromeos/drive/file_system/remove_operation.h" | 24 #include "chrome/browser/chromeos/drive/file_system/remove_operation.h" |
25 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 25 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
26 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 26 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
27 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 27 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
28 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 28 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
29 #include "chrome/browser/drive/event_logger.h" | 29 #include "components/drive/event_logger.h" |
30 #include "chrome/browser/drive/fake_drive_service.h" | 30 #include "components/drive/service/fake_drive_service.h" |
31 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
32 #include "google_apis/drive/drive_api_parser.h" | 32 #include "google_apis/drive/drive_api_parser.h" |
33 #include "google_apis/drive/test_util.h" | 33 #include "google_apis/drive/test_util.h" |
34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
35 | 35 |
36 namespace drive { | 36 namespace drive { |
37 namespace internal { | 37 namespace internal { |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 local_id, google_apis::test_util::CreateCopyResultCallback(&error))); | 514 local_id, google_apis::test_util::CreateCopyResultCallback(&error))); |
515 | 515 |
516 base::RunLoop().RunUntilIdle(); | 516 base::RunLoop().RunUntilIdle(); |
517 | 517 |
518 // The callback is called. | 518 // The callback is called. |
519 EXPECT_EQ(FILE_ERROR_OK, error); | 519 EXPECT_EQ(FILE_ERROR_OK, error); |
520 } | 520 } |
521 | 521 |
522 } // namespace internal | 522 } // namespace internal |
523 } // namespace drive | 523 } // namespace drive |
OLD | NEW |