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

Side by Side Diff: chrome/browser/chromeos/settings/stub_cros_settings_provider_unittest.cc

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/settings/stub_cros_settings_provider.h" 5 #include "chrome/browser/chromeos/settings/stub_cros_settings_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 virtual ~StubCrosSettingsProviderTest() { 34 virtual ~StubCrosSettingsProviderTest() {
35 } 35 }
36 36
37 virtual void SetUp() OVERRIDE { 37 virtual void SetUp() OVERRIDE {
38 // Reset the observer notification count. 38 // Reset the observer notification count.
39 observer_count_.clear(); 39 observer_count_.clear();
40 } 40 }
41 41
42 void AssertPref(const std::string& prefName, const Value* value) { 42 void AssertPref(const std::string& prefName, const base::Value* value) {
43 const Value* pref = provider_->Get(prefName); 43 const base::Value* pref = provider_->Get(prefName);
44 ASSERT_TRUE(pref); 44 ASSERT_TRUE(pref);
45 ASSERT_TRUE(pref->Equals(value)); 45 ASSERT_TRUE(pref->Equals(value));
46 } 46 }
47 47
48 void ExpectObservers(const std::string& prefName, int count) { 48 void ExpectObservers(const std::string& prefName, int count) {
49 EXPECT_EQ(observer_count_[prefName], count); 49 EXPECT_EQ(observer_count_[prefName], count);
50 } 50 }
51 51
52 void FireObservers(const std::string& path) { 52 void FireObservers(const std::string& path) {
53 observer_count_[path]++; 53 observer_count_[path]++;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 TEST_F(StubCrosSettingsProviderTest, PrepareTrustedValues) { 91 TEST_F(StubCrosSettingsProviderTest, PrepareTrustedValues) {
92 // Should return immediately without invoking the callback. 92 // Should return immediately without invoking the callback.
93 CrosSettingsProvider::TrustedStatus trusted = 93 CrosSettingsProvider::TrustedStatus trusted =
94 provider_->PrepareTrustedValues(base::Bind(&Fail)); 94 provider_->PrepareTrustedValues(base::Bind(&Fail));
95 EXPECT_EQ(CrosSettingsProvider::TRUSTED, trusted); 95 EXPECT_EQ(CrosSettingsProvider::TRUSTED, trusted);
96 } 96 }
97 97
98 } // namespace chromeos 98 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/owner_flags_storage.cc ('k') | chrome/browser/chromeos/system_logs/touch_log_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698