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 "chrome/browser/prefs/profile_pref_store_manager.h" | 5 #include "chrome/browser/prefs/profile_pref_store_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_helpers.h" | 13 #include "base/callback_helpers.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/files/file_enumerator.h" | 15 #include "base/files/file_enumerator.h" |
16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" |
17 #include "base/files/scoped_temp_dir.h" | 17 #include "base/files/scoped_temp_dir.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/ptr_util.h" | 19 #include "base/memory/ptr_util.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/message_loop/message_loop.h" |
21 #include "base/run_loop.h" | 22 #include "base/run_loop.h" |
22 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
23 #include "base/test/scoped_feature_list.h" | 24 #include "base/test/scoped_feature_list.h" |
24 #include "base/test/sequenced_worker_pool_owner.h" | 25 #include "base/test/sequenced_worker_pool_owner.h" |
25 #include "base/threading/sequenced_worker_pool.h" | 26 #include "base/threading/sequenced_worker_pool.h" |
26 #include "base/values.h" | 27 #include "base/values.h" |
27 #include "chrome/common/chrome_features.h" | 28 #include "chrome/common/chrome_features.h" |
28 #include "components/pref_registry/pref_registry_syncable.h" | 29 #include "components/pref_registry/pref_registry_syncable.h" |
29 #include "components/prefs/json_pref_store.h" | 30 #include "components/prefs/json_pref_store.h" |
30 #include "components/prefs/persistent_pref_store.h" | 31 #include "components/prefs/persistent_pref_store.h" |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 LoadExistingPrefs(); | 629 LoadExistingPrefs(); |
629 ExpectStringValueEquals(kProtectedAtomic, kGoodbyeWorld); | 630 ExpectStringValueEquals(kProtectedAtomic, kGoodbyeWorld); |
630 VerifyResetRecorded(false); | 631 VerifyResetRecorded(false); |
631 } | 632 } |
632 | 633 |
633 // The parameter controls whether the user pref store is created within a | 634 // The parameter controls whether the user pref store is created within a |
634 // service. | 635 // service. |
635 INSTANTIATE_TEST_CASE_P(ProfilePrefStoreManagerTest, | 636 INSTANTIATE_TEST_CASE_P(ProfilePrefStoreManagerTest, |
636 ProfilePrefStoreManagerTest, | 637 ProfilePrefStoreManagerTest, |
637 testing::Bool()); | 638 testing::Bool()); |
OLD | NEW |