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

Side by Side Diff: components/sync_preferences/testing_pref_service_syncable.h

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef COMPONENTS_SYNCABLE_PREFS_TESTING_PREF_SERVICE_SYNCABLE_H_ 5 #ifndef COMPONENTS_SYNC_PREFERENCES_TESTING_PREF_SERVICE_SYNCABLE_H_
6 #define COMPONENTS_SYNCABLE_PREFS_TESTING_PREF_SERVICE_SYNCABLE_H_ 6 #define COMPONENTS_SYNC_PREFERENCES_TESTING_PREF_SERVICE_SYNCABLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/prefs/testing_pref_service.h" 9 #include "components/prefs/testing_pref_service.h"
10 #include "components/syncable_prefs/pref_service_syncable.h" 10 #include "components/sync_preferences/pref_service_syncable.h"
11 11
12 namespace user_prefs { 12 namespace user_prefs {
13 class PrefRegistrySyncable; 13 class PrefRegistrySyncable;
14 } 14 }
15 15
16 namespace syncable_prefs { 16 namespace sync_preferences {
17 17
18 class PrefModelAssociatorClient; 18 class PrefModelAssociatorClient;
19 19
20 // Test version of PrefServiceSyncable. 20 // Test version of PrefServiceSyncable.
21 class TestingPrefServiceSyncable 21 class TestingPrefServiceSyncable
22 : public TestingPrefServiceBase<PrefServiceSyncable, 22 : public TestingPrefServiceBase<PrefServiceSyncable,
23 user_prefs::PrefRegistrySyncable> { 23 user_prefs::PrefRegistrySyncable> {
24 public: 24 public:
25 TestingPrefServiceSyncable(); 25 TestingPrefServiceSyncable();
26 TestingPrefServiceSyncable(TestingPrefStore* managed_prefs, 26 TestingPrefServiceSyncable(TestingPrefStore* managed_prefs,
27 TestingPrefStore* user_prefs, 27 TestingPrefStore* user_prefs,
28 TestingPrefStore* recommended_prefs, 28 TestingPrefStore* recommended_prefs,
29 user_prefs::PrefRegistrySyncable* pref_registry, 29 user_prefs::PrefRegistrySyncable* pref_registry,
30 PrefNotifierImpl* pref_notifier); 30 PrefNotifierImpl* pref_notifier);
31 ~TestingPrefServiceSyncable() override; 31 ~TestingPrefServiceSyncable() override;
32 32
33 // This is provided as a convenience; on a production PrefService 33 // This is provided as a convenience; on a production PrefService
34 // you would do all registrations before constructing it, passing it 34 // you would do all registrations before constructing it, passing it
35 // a PrefRegistry via its constructor (or via e.g. PrefServiceFactory). 35 // a PrefRegistry via its constructor (or via e.g. PrefServiceFactory).
36 user_prefs::PrefRegistrySyncable* registry(); 36 user_prefs::PrefRegistrySyncable* registry();
37 37
38 using PrefServiceSyncable::SetPrefModelAssociatorClientForTesting; 38 using PrefServiceSyncable::SetPrefModelAssociatorClientForTesting;
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable); 41 DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable);
42 }; 42 };
43 43
44 } // namespace syncable_prefs 44 } // namespace sync_preferences
45 45
46 template <> 46 template <>
47 TestingPrefServiceBase<syncable_prefs::PrefServiceSyncable, 47 TestingPrefServiceBase<sync_preferences::PrefServiceSyncable,
48 user_prefs::PrefRegistrySyncable>:: 48 user_prefs::PrefRegistrySyncable>::
49 TestingPrefServiceBase(TestingPrefStore* managed_prefs, 49 TestingPrefServiceBase(TestingPrefStore* managed_prefs,
50 TestingPrefStore* user_prefs, 50 TestingPrefStore* user_prefs,
51 TestingPrefStore* recommended_prefs, 51 TestingPrefStore* recommended_prefs,
52 user_prefs::PrefRegistrySyncable* pref_registry, 52 user_prefs::PrefRegistrySyncable* pref_registry,
53 PrefNotifierImpl* pref_notifier); 53 PrefNotifierImpl* pref_notifier);
54 54
55 #endif // COMPONENTS_SYNCABLE_PREFS_TESTING_PREF_SERVICE_SYNCABLE_H_ 55 #endif // COMPONENTS_SYNC_PREFERENCES_TESTING_PREF_SERVICE_SYNCABLE_H_
56
OLDNEW
« no previous file with comments | « components/sync_preferences/synced_pref_observer.h ('k') | components/sync_preferences/testing_pref_service_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698