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 "components/drive/chromeos/sync_client.h" | 5 #include "components/drive/chromeos/sync_client.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.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/threading/thread_task_runner_handle.h" |
16 #include "components/drive/chromeos/change_list_loader.h" | 16 #include "components/drive/chromeos/change_list_loader.h" |
17 #include "components/drive/chromeos/drive_test_util.h" | 17 #include "components/drive/chromeos/drive_test_util.h" |
18 #include "components/drive/chromeos/fake_free_disk_space_getter.h" | 18 #include "components/drive/chromeos/fake_free_disk_space_getter.h" |
19 #include "components/drive/chromeos/file_cache.h" | 19 #include "components/drive/chromeos/file_cache.h" |
20 #include "components/drive/chromeos/file_system/move_operation.h" | 20 #include "components/drive/chromeos/file_system/move_operation.h" |
21 #include "components/drive/chromeos/file_system/operation_delegate.h" | 21 #include "components/drive/chromeos/file_system/operation_delegate.h" |
22 #include "components/drive/chromeos/file_system/remove_operation.h" | 22 #include "components/drive/chromeos/file_system/remove_operation.h" |
23 #include "components/drive/chromeos/resource_metadata.h" | 23 #include "components/drive/chromeos/resource_metadata.h" |
24 #include "components/drive/drive.pb.h" | 24 #include "components/drive/drive.pb.h" |
25 #include "components/drive/event_logger.h" | 25 #include "components/drive/event_logger.h" |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 local_id, google_apis::test_util::CreateCopyResultCallback(&error))); | 515 local_id, google_apis::test_util::CreateCopyResultCallback(&error))); |
516 | 516 |
517 base::RunLoop().RunUntilIdle(); | 517 base::RunLoop().RunUntilIdle(); |
518 | 518 |
519 // The callback is called. | 519 // The callback is called. |
520 EXPECT_EQ(FILE_ERROR_OK, error); | 520 EXPECT_EQ(FILE_ERROR_OK, error); |
521 } | 521 } |
522 | 522 |
523 } // namespace internal | 523 } // namespace internal |
524 } // namespace drive | 524 } // namespace drive |
OLD | NEW |