Add missing pnacl libraries and headers and tools.
[chromium-blink-merge.git] / base / prefs / mock_pref_change_callback.cc
blob2285d8e366a5a1f8e351693146ae58b172c9bed1
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/mock_pref_change_callback.h"
7 #include "base/bind.h"
9 MockPrefChangeCallback::MockPrefChangeCallback(PrefService* prefs)
10 : prefs_(prefs) {
13 MockPrefChangeCallback::~MockPrefChangeCallback() {}
15 PrefChangeRegistrar::NamedChangeCallback MockPrefChangeCallback::GetCallback() {
16 return base::Bind(&MockPrefChangeCallback::OnPreferenceChanged,
17 base::Unretained(this));
20 void MockPrefChangeCallback::Expect(const std::string& pref_name,
21 const Value* value) {
22 EXPECT_CALL(*this, OnPreferenceChanged(pref_name))
23 .With(PrefValueMatches(prefs_, pref_name, value));