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

Unified Diff: chrome/test/base/testing_pref_service_syncable.h

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/testing_pref_service_syncable.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_pref_service_syncable.h
diff --git a/chrome/test/base/testing_pref_service_syncable.h b/chrome/test/base/testing_pref_service_syncable.h
deleted file mode 100644
index 4db95d92ae8b7257040131e8c67bdc9032bcc8c2..0000000000000000000000000000000000000000
--- a/chrome/test/base/testing_pref_service_syncable.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_TEST_BASE_TESTING_PREF_SERVICE_SYNCABLE_H_
-#define CHROME_TEST_BASE_TESTING_PREF_SERVICE_SYNCABLE_H_
-
-#include "base/basictypes.h"
-#include "base/prefs/testing_pref_service.h"
-#include "chrome/browser/prefs/pref_service_syncable.h"
-
-class PrefModelAssociatorClient;
-
-namespace user_prefs {
-class PrefRegistrySyncable;
-}
-
-// Test version of PrefServiceSyncable.
-class TestingPrefServiceSyncable
- : public TestingPrefServiceBase<PrefServiceSyncable,
- user_prefs::PrefRegistrySyncable> {
- public:
- TestingPrefServiceSyncable();
- TestingPrefServiceSyncable(TestingPrefStore* managed_prefs,
- TestingPrefStore* user_prefs,
- TestingPrefStore* recommended_prefs,
- user_prefs::PrefRegistrySyncable* pref_registry,
- PrefNotifierImpl* pref_notifier);
- ~TestingPrefServiceSyncable() override;
-
- // This is provided as a convenience; on a production PrefService
- // you would do all registrations before constructing it, passing it
- // a PrefRegistry via its constructor (or via e.g. PrefServiceFactory).
- user_prefs::PrefRegistrySyncable* registry();
-
- using PrefServiceSyncable::SetPrefModelAssociatorClientForTesting;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceSyncable);
-};
-
-template <>
-TestingPrefServiceBase<PrefServiceSyncable, user_prefs::PrefRegistrySyncable>::
- TestingPrefServiceBase(TestingPrefStore* managed_prefs,
- TestingPrefStore* user_prefs,
- TestingPrefStore* recommended_prefs,
- user_prefs::PrefRegistrySyncable* pref_registry,
- PrefNotifierImpl* pref_notifier);
-
-#endif // CHROME_TEST_BASE_TESTING_PREF_SERVICE_SYNCABLE_H_
-
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/testing_pref_service_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698