Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: components/drive/file_system_unittest.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/drive/file_system_core_util.cc ('k') | components/drive/job_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/file_system.h" 5 #include "components/drive/file_system.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/files/scoped_temp_dir.h" 16 #include "base/files/scoped_temp_dir.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/prefs/testing_pref_service.h"
20 #include "base/run_loop.h" 19 #include "base/run_loop.h"
21 #include "base/single_thread_task_runner.h" 20 #include "base/single_thread_task_runner.h"
22 #include "base/thread_task_runner_handle.h" 21 #include "base/thread_task_runner_handle.h"
23 #include "components/drive/change_list_loader.h" 22 #include "components/drive/change_list_loader.h"
24 #include "components/drive/drive.pb.h" 23 #include "components/drive/drive.pb.h"
25 #include "components/drive/drive_api_util.h" 24 #include "components/drive/drive_api_util.h"
26 #include "components/drive/drive_test_util.h" 25 #include "components/drive/drive_test_util.h"
27 #include "components/drive/event_logger.h" 26 #include "components/drive/event_logger.h"
28 #include "components/drive/fake_free_disk_space_getter.h" 27 #include "components/drive/fake_free_disk_space_getter.h"
29 #include "components/drive/file_change.h" 28 #include "components/drive/file_change.h"
30 #include "components/drive/file_system_core_util.h" 29 #include "components/drive/file_system_core_util.h"
31 #include "components/drive/file_system_observer.h" 30 #include "components/drive/file_system_observer.h"
32 #include "components/drive/job_scheduler.h" 31 #include "components/drive/job_scheduler.h"
33 #include "components/drive/service/fake_drive_service.h" 32 #include "components/drive/service/fake_drive_service.h"
34 #include "components/drive/service/test_util.h" 33 #include "components/drive/service/test_util.h"
35 #include "components/drive/sync_client.h" 34 #include "components/drive/sync_client.h"
35 #include "components/prefs/testing_pref_service.h"
36 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
37 #include "content/public/test/test_browser_thread_bundle.h" 37 #include "content/public/test/test_browser_thread_bundle.h"
38 #include "google_apis/drive/drive_api_parser.h" 38 #include "google_apis/drive/drive_api_parser.h"
39 #include "google_apis/drive/test_util.h" 39 #include "google_apis/drive/test_util.h"
40 #include "testing/gtest/include/gtest/gtest.h" 40 #include "testing/gtest/include/gtest/gtest.h"
41 41
42 namespace drive { 42 namespace drive {
43 namespace { 43 namespace {
44 44
45 // Counts the number of invocation, and if it increased up to |expected_counter| 45 // Counts the number of invocation, and if it increased up to |expected_counter|
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 google_apis::test_util::CreateCopyResultCallback(&available)); 1061 google_apis::test_util::CreateCopyResultCallback(&available));
1062 content::RunAllBlockingPoolTasksUntilIdle(); 1062 content::RunAllBlockingPoolTasksUntilIdle();
1063 ASSERT_FALSE(available); 1063 ASSERT_FALSE(available);
1064 1064
1065 entry = GetResourceEntrySync(file_in_root); 1065 entry = GetResourceEntrySync(file_in_root);
1066 ASSERT_TRUE(entry); 1066 ASSERT_TRUE(entry);
1067 EXPECT_FALSE(entry->file_specific_info().cache_state().is_present()); 1067 EXPECT_FALSE(entry->file_specific_info().cache_state().is_present());
1068 } 1068 }
1069 1069
1070 } // namespace drive 1070 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/file_system_core_util.cc ('k') | components/drive/job_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698