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

Side by Side Diff: base/prefs/pref_store_observer_mock.cc

Issue 210063003: Refactor TestingPrefStore to make it useful to some tests of load errors and asynchrony. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adopt a non-gmock approach in the clients. Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/prefs/pref_store_observer_mock.h" 5 #include "base/prefs/pref_store_observer_mock.h"
6 6
7 PrefStoreObserverMock::PrefStoreObserverMock() {} 7 PrefStoreObserverMock::PrefStoreObserverMock()
8 : initialized(false), initialization_success(false) {}
8 9
9 PrefStoreObserverMock::~PrefStoreObserverMock() {} 10 PrefStoreObserverMock::~PrefStoreObserverMock() {}
11
12 void PrefStoreObserverMock::OnPrefValueChanged(const std::string& key) {
13 changed_keys.push_back(key);
14 }
15
16 void PrefStoreObserverMock::OnInitializationCompleted(bool success) {
17 initialized = true;
18 initialization_success = success;
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698