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

Unified Diff: components/prefs/pref_store_observer_mock.h

Issue 1645073005: Revert of Move base/prefs to components/prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « components/prefs/pref_store.cc ('k') | components/prefs/pref_store_observer_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_store_observer_mock.h
diff --git a/components/prefs/pref_store_observer_mock.h b/components/prefs/pref_store_observer_mock.h
deleted file mode 100644
index 1b24b4e068f1be84dd3fd6e081a0c5517d97bec7..0000000000000000000000000000000000000000
--- a/components/prefs/pref_store_observer_mock.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2011 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 BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
-#define BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
-
-#include <string>
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/prefs/pref_store.h"
-
-// A mock implementation of PrefStore::Observer.
-class PrefStoreObserverMock : public PrefStore::Observer {
- public:
- PrefStoreObserverMock();
- ~PrefStoreObserverMock() override;
-
- void VerifyAndResetChangedKey(const std::string& expected);
-
- // PrefStore::Observer implementation
- void OnPrefValueChanged(const std::string& key) override;
- void OnInitializationCompleted(bool success) override;
-
- std::vector<std::string> changed_keys;
- bool initialized;
- bool initialization_success; // Only valid if |initialized|.
-
- private:
- DISALLOW_COPY_AND_ASSIGN(PrefStoreObserverMock);
-};
-
-#endif // BASE_PREFS_PREF_STORE_OBSERVER_MOCK_H_
« no previous file with comments | « components/prefs/pref_store.cc ('k') | components/prefs/pref_store_observer_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698