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 "components/drive/chromeos/change_list_loader.h" | 5 #include "components/drive/chromeos/change_list_loader.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "components/drive/chromeos/change_list_loader_observer.h" | 17 #include "components/drive/chromeos/change_list_loader_observer.h" |
18 #include "components/drive/chromeos/drive_test_util.h" | 18 #include "components/drive/chromeos/drive_test_util.h" |
19 #include "components/drive/chromeos/file_cache.h" | 19 #include "components/drive/chromeos/file_cache.h" |
20 #include "components/drive/chromeos/resource_metadata.h" | 20 #include "components/drive/chromeos/resource_metadata.h" |
21 #include "components/drive/event_logger.h" | 21 #include "components/drive/event_logger.h" |
22 #include "components/drive/file_change.h" | 22 #include "components/drive/file_change.h" |
23 #include "components/drive/file_system_core_util.h" | 23 #include "components/drive/file_system_core_util.h" |
24 #include "components/drive/job_scheduler.h" | 24 #include "components/drive/job_scheduler.h" |
25 #include "components/drive/service/fake_drive_service.h" | 25 #include "components/drive/service/fake_drive_service.h" |
26 #include "components/drive/service/test_util.h" | 26 #include "components/drive/service/test_util.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 // Unlock the loader, this should resume the pending update. | 401 // Unlock the loader, this should resume the pending update. |
402 lock.reset(); | 402 lock.reset(); |
403 base::RunLoop().RunUntilIdle(); | 403 base::RunLoop().RunUntilIdle(); |
404 EXPECT_TRUE( | 404 EXPECT_TRUE( |
405 observer.changed_files().CountDirectory(util::GetDriveMyDriveRootPath())); | 405 observer.changed_files().CountDirectory(util::GetDriveMyDriveRootPath())); |
406 } | 406 } |
407 | 407 |
408 } // namespace internal | 408 } // namespace internal |
409 } // namespace drive | 409 } // namespace drive |
OLD | NEW |