Add APIs to thumbnail_store to decompress thumbnails into SkBitmap
[chromium-blink-merge.git] / base / prefs / pref_store_observer_mock.cc
blobf1a31bb985d2032ce2fc056e975923a899a255a3
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
3 // found in the LICENSE file.
5 #include "base/prefs/pref_store_observer_mock.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 PrefStoreObserverMock::PrefStoreObserverMock()
10 : initialized(false), initialization_success(false) {}
12 PrefStoreObserverMock::~PrefStoreObserverMock() {}
14 void PrefStoreObserverMock::VerifyAndResetChangedKey(
15 const std::string& expected) {
16 EXPECT_EQ(1u, changed_keys.size());
17 if (changed_keys.size() >= 1)
18 EXPECT_EQ(expected, changed_keys.front());
19 changed_keys.clear();
22 void PrefStoreObserverMock::OnPrefValueChanged(const std::string& key) {
23 changed_keys.push_back(key);
26 void PrefStoreObserverMock::OnInitializationCompleted(bool success) {
27 initialized = true;
28 initialization_success = success;