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

Unified Diff: base/prefs/pref_store_observer_mock.cc

Issue 1648403002: 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 | « base/prefs/pref_store_observer_mock.h ('k') | base/prefs/pref_value_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_store_observer_mock.cc
diff --git a/base/prefs/pref_store_observer_mock.cc b/base/prefs/pref_store_observer_mock.cc
deleted file mode 100644
index f1a31bb985d2032ce2fc056e975923a899a255a3..0000000000000000000000000000000000000000
--- a/base/prefs/pref_store_observer_mock.cc
+++ /dev/null
@@ -1,29 +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.
-
-#include "base/prefs/pref_store_observer_mock.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-PrefStoreObserverMock::PrefStoreObserverMock()
- : initialized(false), initialization_success(false) {}
-
-PrefStoreObserverMock::~PrefStoreObserverMock() {}
-
-void PrefStoreObserverMock::VerifyAndResetChangedKey(
- const std::string& expected) {
- EXPECT_EQ(1u, changed_keys.size());
- if (changed_keys.size() >= 1)
- EXPECT_EQ(expected, changed_keys.front());
- changed_keys.clear();
-}
-
-void PrefStoreObserverMock::OnPrefValueChanged(const std::string& key) {
- changed_keys.push_back(key);
-}
-
-void PrefStoreObserverMock::OnInitializationCompleted(bool success) {
- initialized = true;
- initialization_success = success;
-}
« no previous file with comments | « base/prefs/pref_store_observer_mock.h ('k') | base/prefs/pref_value_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698