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/change_list_loader.h" | 5 #include "components/drive/change_list_loader.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
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/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/prefs/testing_pref_service.h" | |
14 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
16 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
17 #include "components/drive/change_list_loader_observer.h" | 16 #include "components/drive/change_list_loader_observer.h" |
18 #include "components/drive/drive_test_util.h" | 17 #include "components/drive/drive_test_util.h" |
19 #include "components/drive/event_logger.h" | 18 #include "components/drive/event_logger.h" |
20 #include "components/drive/file_cache.h" | 19 #include "components/drive/file_cache.h" |
21 #include "components/drive/file_change.h" | 20 #include "components/drive/file_change.h" |
22 #include "components/drive/file_system_core_util.h" | 21 #include "components/drive/file_system_core_util.h" |
23 #include "components/drive/job_scheduler.h" | 22 #include "components/drive/job_scheduler.h" |
24 #include "components/drive/resource_metadata.h" | 23 #include "components/drive/resource_metadata.h" |
25 #include "components/drive/service/fake_drive_service.h" | 24 #include "components/drive/service/fake_drive_service.h" |
26 #include "components/drive/service/test_util.h" | 25 #include "components/drive/service/test_util.h" |
| 26 #include "components/prefs/testing_pref_service.h" |
27 #include "content/public/test/test_browser_thread_bundle.h" | 27 #include "content/public/test/test_browser_thread_bundle.h" |
28 #include "google_apis/drive/drive_api_parser.h" | 28 #include "google_apis/drive/drive_api_parser.h" |
29 #include "google_apis/drive/test_util.h" | 29 #include "google_apis/drive/test_util.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 namespace drive { | 32 namespace drive { |
33 namespace internal { | 33 namespace internal { |
34 | 34 |
35 class TestChangeListLoaderObserver : public ChangeListLoaderObserver { | 35 class TestChangeListLoaderObserver : public ChangeListLoaderObserver { |
36 public: | 36 public: |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 395 |
396 // Unlock the loader, this should resume the pending update. | 396 // Unlock the loader, this should resume the pending update. |
397 lock.reset(); | 397 lock.reset(); |
398 base::RunLoop().RunUntilIdle(); | 398 base::RunLoop().RunUntilIdle(); |
399 EXPECT_TRUE( | 399 EXPECT_TRUE( |
400 observer.changed_files().CountDirectory(util::GetDriveMyDriveRootPath())); | 400 observer.changed_files().CountDirectory(util::GetDriveMyDriveRootPath())); |
401 } | 401 } |
402 | 402 |
403 } // namespace internal | 403 } // namespace internal |
404 } // namespace drive | 404 } // namespace drive |
OLD | NEW |