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

Unified Diff: chrome/browser/prefs/pref_service_mock_builder.h

Issue 64193003: Clean up PrefServiceBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory ownership bug in ProxyPolicyTest Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/pref_service_mock_builder.h
diff --git a/chrome/browser/prefs/pref_service_mock_builder.h b/chrome/browser/prefs/pref_service_mock_builder.h
deleted file mode 100644
index 46a0b79b925fa7cc5bb473a92d46710e6cb4911c..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/pref_service_mock_builder.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 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_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_
-#define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_
-
-#include "chrome/browser/prefs/pref_service_syncable_builder.h"
-
-class PrefService;
-class PrefServiceSyncable;
-
-// A helper that allows convenient building of custom PrefServices in tests.
-class PrefServiceMockBuilder : public PrefServiceSyncableBuilder {
- public:
- PrefServiceMockBuilder();
- virtual ~PrefServiceMockBuilder();
-
- // Creates a PrefService for testing, invalidating the entire
- // builder configuration.
- virtual PrefService* Create(PrefRegistry* pref_registry) OVERRIDE;
- virtual PrefServiceSyncable* CreateSyncable(
- user_prefs::PrefRegistrySyncable* pref_registry) OVERRIDE;
-
- private:
- virtual void ResetDefaultState() OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(PrefServiceMockBuilder);
-};
-
-#endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_BUILDER_H_
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_unittest.cc ('k') | chrome/browser/prefs/pref_service_mock_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698