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 "components/drive/chromeos/directory_loader.h" | 5 #include "components/drive/chromeos/directory_loader.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/macros.h" | 11 #include "base/macros.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/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "components/drive/chromeos/change_list_loader.h" | 15 #include "components/drive/chromeos/change_list_loader.h" |
16 #include "components/drive/chromeos/change_list_loader_observer.h" | 16 #include "components/drive/chromeos/change_list_loader_observer.h" |
17 #include "components/drive/chromeos/drive_test_util.h" | 17 #include "components/drive/chromeos/drive_test_util.h" |
18 #include "components/drive/chromeos/file_cache.h" | 18 #include "components/drive/chromeos/file_cache.h" |
19 #include "components/drive/chromeos/resource_metadata.h" | 19 #include "components/drive/chromeos/resource_metadata.h" |
20 #include "components/drive/event_logger.h" | 20 #include "components/drive/event_logger.h" |
21 #include "components/drive/file_system_core_util.h" | 21 #include "components/drive/file_system_core_util.h" |
22 #include "components/drive/job_scheduler.h" | 22 #include "components/drive/job_scheduler.h" |
23 #include "components/drive/service/fake_drive_service.h" | 23 #include "components/drive/service/fake_drive_service.h" |
24 #include "components/drive/service/test_util.h" | 24 #include "components/drive/service/test_util.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 // Unlock the loader, this should resume the pending udpate. | 249 // Unlock the loader, this should resume the pending udpate. |
250 lock.reset(); | 250 lock.reset(); |
251 base::RunLoop().RunUntilIdle(); | 251 base::RunLoop().RunUntilIdle(); |
252 EXPECT_EQ(1U, observer.changed_directories().count( | 252 EXPECT_EQ(1U, observer.changed_directories().count( |
253 util::GetDriveMyDriveRootPath())); | 253 util::GetDriveMyDriveRootPath())); |
254 } | 254 } |
255 | 255 |
256 } // namespace internal | 256 } // namespace internal |
257 } // namespace drive | 257 } // namespace drive |
OLD | NEW |