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

Side by Side Diff: chrome/browser/prefs/pref_service_unittest.cc

Issue 5646003: Sanitize PrefStore interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for chrome frame Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <string> 5 #include <string>
6 6
7 #include "app/test/data/resource.h" 7 #include "app/test/data/resource.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/policy/configuration_policy_pref_store.h" 11 #include "chrome/browser/policy/configuration_policy_pref_store.h"
12 #include "chrome/browser/policy/mock_configuration_policy_provider.h" 12 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
13 #include "chrome/browser/prefs/browser_prefs.h" 13 #include "chrome/browser/prefs/browser_prefs.h"
14 #include "chrome/browser/prefs/command_line_pref_store.h" 14 #include "chrome/browser/prefs/command_line_pref_store.h"
15 #include "chrome/browser/prefs/testing_pref_store.h"
16 #include "chrome/browser/prefs/pref_change_registrar.h" 15 #include "chrome/browser/prefs/pref_change_registrar.h"
17 #include "chrome/browser/prefs/pref_observer_mock.h" 16 #include "chrome/browser/prefs/pref_observer_mock.h"
17 #include "chrome/browser/prefs/pref_service_mock_builder.h"
18 #include "chrome/browser/prefs/pref_value_store.h" 18 #include "chrome/browser/prefs/pref_value_store.h"
19 #include "chrome/browser/prefs/testing_pref_store.h"
19 #include "chrome/common/chrome_paths.h" 20 #include "chrome/common/chrome_paths.h"
20 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
22 #include "chrome/test/testing_pref_service.h" 23 #include "chrome/test/testing_pref_service.h"
23 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
24 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
25 26
26 using testing::_; 27 using testing::_;
27 using testing::Mock; 28 using testing::Mock;
28 29
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Make sure obs2 still works after removing obs. 140 // Make sure obs2 still works after removing obs.
140 registrar.Remove(pref_name, &obs); 141 registrar.Remove(pref_name, &obs);
141 EXPECT_CALL(obs, Observe(_, _, _)).Times(0); 142 EXPECT_CALL(obs, Observe(_, _, _)).Times(0);
142 obs2.Expect(&prefs, pref_name, &expected_new_pref_value); 143 obs2.Expect(&prefs, pref_name, &expected_new_pref_value);
143 // This should only fire the observer in obs2. 144 // This should only fire the observer in obs2.
144 prefs.SetString(pref_name, new_pref_value); 145 prefs.SetString(pref_name, new_pref_value);
145 Mock::VerifyAndClearExpectations(&obs); 146 Mock::VerifyAndClearExpectations(&obs);
146 Mock::VerifyAndClearExpectations(&obs2); 147 Mock::VerifyAndClearExpectations(&obs2);
147 } 148 }
148 149
149 TEST(PrefServiceTest, ProxyFromCommandLineNotPolicy) {
150 CommandLine command_line(CommandLine::NO_PROGRAM);
151 command_line.AppendSwitch(switches::kProxyAutoDetect);
152 TestingPrefService prefs(NULL, NULL, &command_line);
153 browser::RegisterUserPrefs(&prefs);
154 EXPECT_TRUE(prefs.GetBoolean(prefs::kProxyAutoDetect));
155 const PrefService::Preference* pref =
156 prefs.FindPreference(prefs::kProxyAutoDetect);
157 ASSERT_TRUE(pref);
158 EXPECT_FALSE(pref->IsManaged());
159 }
160
161 TEST(PrefServiceTest, ProxyPolicyOverridesCommandLineOptions) { 150 TEST(PrefServiceTest, ProxyPolicyOverridesCommandLineOptions) {
162 CommandLine command_line(CommandLine::NO_PROGRAM); 151 CommandLine command_line(CommandLine::NO_PROGRAM);
163 command_line.AppendSwitchASCII(switches::kProxyBypassList, "123"); 152 command_line.AppendSwitchASCII(switches::kProxyBypassList, "123");
164 command_line.AppendSwitchASCII(switches::kProxyPacUrl, "456"); 153 command_line.AppendSwitchASCII(switches::kProxyPacUrl, "456");
165 command_line.AppendSwitchASCII(switches::kProxyServer, "789"); 154 command_line.AppendSwitchASCII(switches::kProxyServer, "789");
166 scoped_ptr<policy::MockConfigurationPolicyProvider> provider( 155 scoped_ptr<policy::MockConfigurationPolicyProvider> provider(
167 new policy::MockConfigurationPolicyProvider()); 156 new policy::MockConfigurationPolicyProvider());
168 Value* mode_value = Value::CreateIntegerValue( 157 Value* mode_value = Value::CreateIntegerValue(
169 policy::kPolicyManuallyConfiguredProxyMode); 158 policy::kPolicyManuallyConfiguredProxyMode);
170 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value); 159 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value);
171 provider->AddPolicy(policy::kPolicyProxyBypassList, 160 provider->AddPolicy(policy::kPolicyProxyBypassList,
172 Value::CreateStringValue("abc")); 161 Value::CreateStringValue("abc"));
173 provider->AddPolicy(policy::kPolicyProxyPacUrl, 162 provider->AddPolicy(policy::kPolicyProxyPacUrl,
174 Value::CreateStringValue("def")); 163 Value::CreateStringValue("def"));
175 provider->AddPolicy(policy::kPolicyProxyServer, 164 provider->AddPolicy(policy::kPolicyProxyServer,
176 Value::CreateStringValue("ghi")); 165 Value::CreateStringValue("ghi"));
177 166
178 // First verify that command-line options are set correctly when 167 // First verify that command-line options are set correctly when
179 // there is no policy in effect. 168 // there is no policy in effect.
180 TestingPrefService prefs(NULL, NULL, &command_line); 169 PrefServiceMockBuilder builder;
181 browser::RegisterUserPrefs(&prefs); 170 builder.WithCommandLine(&command_line);
182 EXPECT_FALSE(prefs.GetBoolean(prefs::kProxyAutoDetect)); 171 scoped_ptr<PrefService> prefs(builder.Create());
183 EXPECT_FALSE(prefs.GetBoolean(prefs::kNoProxyServer)); 172 browser::RegisterUserPrefs(prefs.get());
184 EXPECT_EQ("789", prefs.GetString(prefs::kProxyServer)); 173 EXPECT_FALSE(prefs->GetBoolean(prefs::kProxyAutoDetect));
185 EXPECT_EQ("456", prefs.GetString(prefs::kProxyPacUrl)); 174 EXPECT_FALSE(prefs->GetBoolean(prefs::kNoProxyServer));
186 EXPECT_EQ("123", prefs.GetString(prefs::kProxyBypassList)); 175 EXPECT_EQ("789", prefs->GetString(prefs::kProxyServer));
176 EXPECT_EQ("456", prefs->GetString(prefs::kProxyPacUrl));
177 EXPECT_EQ("123", prefs->GetString(prefs::kProxyBypassList));
187 178
188 // Try a second time time with the managed PrefStore in place, the 179 // Try a second time time with the managed PrefStore in place, the
189 // manual proxy policy should have removed all traces of the command 180 // manual proxy policy should have removed all traces of the command
190 // line and replaced them with the policy versions. 181 // line and replaced them with the policy versions.
191 TestingPrefService prefs2(provider.get(), NULL, &command_line); 182 builder.WithManagedPlatformProvider(provider.get());
danno 2010/12/09 14:14:44 command line is missing.
Mattias Nissler (ping if slow) 2010/12/09 14:57:11 Done.
192 browser::RegisterUserPrefs(&prefs2); 183 scoped_ptr<PrefService> prefs2(builder.Create());
193 EXPECT_FALSE(prefs2.GetBoolean(prefs::kProxyAutoDetect)); 184 browser::RegisterUserPrefs(prefs2.get());
194 EXPECT_FALSE(prefs2.GetBoolean(prefs::kNoProxyServer)); 185 EXPECT_FALSE(prefs2->GetBoolean(prefs::kProxyAutoDetect));
195 EXPECT_EQ("ghi", prefs2.GetString(prefs::kProxyServer)); 186 EXPECT_FALSE(prefs2->GetBoolean(prefs::kNoProxyServer));
196 EXPECT_EQ("def", prefs2.GetString(prefs::kProxyPacUrl)); 187 EXPECT_EQ("ghi", prefs2->GetString(prefs::kProxyServer));
197 EXPECT_EQ("abc", prefs2.GetString(prefs::kProxyBypassList)); 188 EXPECT_EQ("def", prefs2->GetString(prefs::kProxyPacUrl));
189 EXPECT_EQ("abc", prefs2->GetString(prefs::kProxyBypassList));
198 } 190 }
199 191
200 TEST(PrefServiceTest, ProxyPolicyOverridesUnrelatedCommandLineOptions) { 192 TEST(PrefServiceTest, ProxyPolicyOverridesUnrelatedCommandLineOptions) {
201 CommandLine command_line(CommandLine::NO_PROGRAM); 193 CommandLine command_line(CommandLine::NO_PROGRAM);
202 command_line.AppendSwitchASCII(switches::kProxyBypassList, "123"); 194 command_line.AppendSwitchASCII(switches::kProxyBypassList, "123");
203 command_line.AppendSwitchASCII(switches::kProxyPacUrl, "456"); 195 command_line.AppendSwitchASCII(switches::kProxyPacUrl, "456");
204 command_line.AppendSwitchASCII(switches::kProxyServer, "789"); 196 command_line.AppendSwitchASCII(switches::kProxyServer, "789");
205 scoped_ptr<policy::MockConfigurationPolicyProvider> provider( 197 scoped_ptr<policy::MockConfigurationPolicyProvider> provider(
206 new policy::MockConfigurationPolicyProvider()); 198 new policy::MockConfigurationPolicyProvider());
207 Value* mode_value = Value::CreateIntegerValue( 199 Value* mode_value = Value::CreateIntegerValue(
208 policy::kPolicyUseSystemProxyMode); 200 policy::kPolicyUseSystemProxyMode);
209 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value); 201 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value);
210 202
211 // First verify that command-line options are set correctly when 203 // First verify that command-line options are set correctly when
212 // there is no policy in effect. 204 // there is no policy in effect.
213 TestingPrefService prefs(NULL, NULL, &command_line); 205 PrefServiceMockBuilder builder;
214 browser::RegisterUserPrefs(&prefs); 206 builder.WithCommandLine(&command_line);
215 EXPECT_FALSE(prefs.GetBoolean(prefs::kProxyAutoDetect)); 207 scoped_ptr<PrefService> prefs(builder.Create());
216 EXPECT_FALSE(prefs.GetBoolean(prefs::kNoProxyServer)); 208 browser::RegisterUserPrefs(prefs.get());
217 EXPECT_EQ("789", prefs.GetString(prefs::kProxyServer)); 209 EXPECT_FALSE(prefs->GetBoolean(prefs::kProxyAutoDetect));
218 EXPECT_EQ("456", prefs.GetString(prefs::kProxyPacUrl)); 210 EXPECT_FALSE(prefs->GetBoolean(prefs::kNoProxyServer));
219 EXPECT_EQ("123", prefs.GetString(prefs::kProxyBypassList)); 211 EXPECT_EQ("789", prefs->GetString(prefs::kProxyServer));
212 EXPECT_EQ("456", prefs->GetString(prefs::kProxyPacUrl));
213 EXPECT_EQ("123", prefs->GetString(prefs::kProxyBypassList));
220 214
221 // Try a second time time with the managed PrefStore in place, the 215 // Try a second time time with the managed PrefStore in place, the
222 // no proxy policy should have removed all traces of the command 216 // no proxy policy should have removed all traces of the command
223 // line proxy settings, even though they were not the specific one 217 // line proxy settings, even though they were not the specific one
224 // set in policy. 218 // set in policy.
225 TestingPrefService prefs2(provider.get(), NULL, &command_line); 219 builder.WithManagedPlatformProvider(provider.get());
danno 2010/12/09 14:14:44 command line missing
Mattias Nissler (ping if slow) 2010/12/09 14:57:11 Done.
226 browser::RegisterUserPrefs(&prefs2); 220 scoped_ptr<PrefService> prefs2(builder.Create());
227 EXPECT_FALSE(prefs2.GetBoolean(prefs::kProxyAutoDetect)); 221 browser::RegisterUserPrefs(prefs2.get());
228 EXPECT_FALSE(prefs2.GetBoolean(prefs::kNoProxyServer)); 222 EXPECT_FALSE(prefs2->GetBoolean(prefs::kProxyAutoDetect));
229 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyServer)); 223 EXPECT_FALSE(prefs2->GetBoolean(prefs::kNoProxyServer));
230 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyPacUrl)); 224 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyServer));
231 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyBypassList)); 225 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyPacUrl));
226 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyBypassList));
232 } 227 }
233 228
234 TEST(PrefServiceTest, ProxyPolicyOverridesCommandLineNoProxy) { 229 TEST(PrefServiceTest, ProxyPolicyOverridesCommandLineNoProxy) {
235 CommandLine command_line(CommandLine::NO_PROGRAM); 230 CommandLine command_line(CommandLine::NO_PROGRAM);
236 command_line.AppendSwitch(switches::kNoProxyServer); 231 command_line.AppendSwitch(switches::kNoProxyServer);
237 scoped_ptr<policy::MockConfigurationPolicyProvider> provider( 232 scoped_ptr<policy::MockConfigurationPolicyProvider> provider(
238 new policy::MockConfigurationPolicyProvider()); 233 new policy::MockConfigurationPolicyProvider());
239 Value* mode_value = Value::CreateIntegerValue( 234 Value* mode_value = Value::CreateIntegerValue(
240 policy::kPolicyAutoDetectProxyMode); 235 policy::kPolicyAutoDetectProxyMode);
241 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value); 236 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value);
242 237
243 // First verify that command-line options are set correctly when 238 // First verify that command-line options are set correctly when
244 // there is no policy in effect. 239 // there is no policy in effect.
245 TestingPrefService prefs(NULL, NULL, &command_line); 240 PrefServiceMockBuilder builder;
246 browser::RegisterUserPrefs(&prefs); 241 builder.WithCommandLine(&command_line);
247 EXPECT_FALSE(prefs.GetBoolean(prefs::kProxyAutoDetect)); 242 scoped_ptr<PrefService> prefs(builder.Create());
248 EXPECT_TRUE(prefs.GetBoolean(prefs::kNoProxyServer)); 243 browser::RegisterUserPrefs(prefs.get());
249 EXPECT_EQ(std::string(), prefs.GetString(prefs::kProxyServer)); 244 EXPECT_FALSE(prefs->GetBoolean(prefs::kProxyAutoDetect));
250 EXPECT_EQ(std::string(), prefs.GetString(prefs::kProxyPacUrl)); 245 EXPECT_TRUE(prefs->GetBoolean(prefs::kNoProxyServer));
251 EXPECT_EQ(std::string(), prefs.GetString(prefs::kProxyBypassList)); 246 EXPECT_EQ(std::string(), prefs->GetString(prefs::kProxyServer));
247 EXPECT_EQ(std::string(), prefs->GetString(prefs::kProxyPacUrl));
248 EXPECT_EQ(std::string(), prefs->GetString(prefs::kProxyBypassList));
252 249
253 // Try a second time time with the managed PrefStore in place, the 250 // Try a second time time with the managed PrefStore in place, the
254 // auto-detect should be overridden. The default pref store must be 251 // auto-detect should be overridden. The default pref store must be
255 // in place with the appropriate default value for this to work. 252 // in place with the appropriate default value for this to work.
256 TestingPrefService prefs2(provider.get(), NULL, &command_line); 253 builder.WithManagedPlatformProvider(provider.get());
257 browser::RegisterUserPrefs(&prefs2); 254 scoped_ptr<PrefService> prefs2(builder.Create());
danno 2010/12/09 14:14:44 please fix command line missing at all places in t
Mattias Nissler (ping if slow) 2010/12/09 14:57:11 Done.
258 EXPECT_TRUE(prefs2.GetBoolean(prefs::kProxyAutoDetect)); 255 browser::RegisterUserPrefs(prefs2.get());
259 EXPECT_FALSE(prefs2.GetBoolean(prefs::kNoProxyServer)); 256 EXPECT_TRUE(prefs2->GetBoolean(prefs::kProxyAutoDetect));
260 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyServer)); 257 EXPECT_FALSE(prefs2->GetBoolean(prefs::kNoProxyServer));
261 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyPacUrl)); 258 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyServer));
262 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyBypassList)); 259 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyPacUrl));
260 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyBypassList));
263 } 261 }
264 262
265 TEST(PrefServiceTest, ProxyPolicyOverridesCommandLineAutoDetect) { 263 TEST(PrefServiceTest, ProxyPolicyOverridesCommandLineAutoDetect) {
266 CommandLine command_line(CommandLine::NO_PROGRAM); 264 CommandLine command_line(CommandLine::NO_PROGRAM);
267 command_line.AppendSwitch(switches::kProxyAutoDetect); 265 command_line.AppendSwitch(switches::kProxyAutoDetect);
268 scoped_ptr<policy::MockConfigurationPolicyProvider> provider( 266 scoped_ptr<policy::MockConfigurationPolicyProvider> provider(
269 new policy::MockConfigurationPolicyProvider()); 267 new policy::MockConfigurationPolicyProvider());
270 Value* mode_value = Value::CreateIntegerValue( 268 Value* mode_value = Value::CreateIntegerValue(
271 policy::kPolicyNoProxyServerMode); 269 policy::kPolicyNoProxyServerMode);
272 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value); 270 provider->AddPolicy(policy::kPolicyProxyServerMode, mode_value);
273 271
274 // First verify that the auto-detect is set if there is no managed 272 // First verify that the auto-detect is set if there is no managed
275 // PrefStore. 273 // PrefStore.
276 TestingPrefService prefs(NULL, NULL, &command_line); 274 PrefServiceMockBuilder builder;
277 browser::RegisterUserPrefs(&prefs); 275 builder.WithCommandLine(&command_line);
278 EXPECT_TRUE(prefs.GetBoolean(prefs::kProxyAutoDetect)); 276 scoped_ptr<PrefService> prefs(builder.Create());
279 EXPECT_FALSE(prefs.GetBoolean(prefs::kNoProxyServer)); 277 browser::RegisterUserPrefs(prefs.get());
280 EXPECT_EQ(std::string(), prefs.GetString(prefs::kProxyServer)); 278 EXPECT_TRUE(prefs->GetBoolean(prefs::kProxyAutoDetect));
281 EXPECT_EQ(std::string(), prefs.GetString(prefs::kProxyPacUrl)); 279 EXPECT_FALSE(prefs->GetBoolean(prefs::kNoProxyServer));
282 EXPECT_EQ(std::string(), prefs.GetString(prefs::kProxyBypassList)); 280 EXPECT_EQ(std::string(), prefs->GetString(prefs::kProxyServer));
281 EXPECT_EQ(std::string(), prefs->GetString(prefs::kProxyPacUrl));
282 EXPECT_EQ(std::string(), prefs->GetString(prefs::kProxyBypassList));
283 283
284 // Try a second time time with the managed PrefStore in place, the 284 // Try a second time time with the managed PrefStore in place, the
285 // auto-detect should be overridden. The default pref store must be 285 // auto-detect should be overridden. The default pref store must be
286 // in place with the appropriate default value for this to work. 286 // in place with the appropriate default value for this to work.
287 TestingPrefService prefs2(provider.get(), NULL, &command_line); 287 builder.WithManagedPlatformProvider(provider.get());
288 browser::RegisterUserPrefs(&prefs2); 288 scoped_ptr<PrefService> prefs2(builder.Create());
289 EXPECT_FALSE(prefs2.GetBoolean(prefs::kProxyAutoDetect)); 289 browser::RegisterUserPrefs(prefs2.get());
290 EXPECT_TRUE(prefs2.GetBoolean(prefs::kNoProxyServer)); 290 EXPECT_FALSE(prefs2->GetBoolean(prefs::kProxyAutoDetect));
291 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyServer)); 291 EXPECT_TRUE(prefs2->GetBoolean(prefs::kNoProxyServer));
292 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyPacUrl)); 292 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyServer));
293 EXPECT_EQ(std::string(), prefs2.GetString(prefs::kProxyBypassList)); 293 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyPacUrl));
294 EXPECT_EQ(std::string(), prefs2->GetString(prefs::kProxyBypassList));
294 } 295 }
295 296
296 class PrefServiceSetValueTest : public testing::Test { 297 class PrefServiceSetValueTest : public testing::Test {
297 protected: 298 protected:
298 static const char kName[]; 299 static const char kName[];
299 static const char kValue[]; 300 static const char kValue[];
300 301
301 PrefServiceSetValueTest() 302 PrefServiceSetValueTest()
302 : null_value_(Value::CreateNullValue()) {} 303 : null_value_(Value::CreateNullValue()) {}
303 304
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 Mock::VerifyAndClearExpectations(&observer_); 380 Mock::VerifyAndClearExpectations(&observer_);
380 381
381 EXPECT_CALL(observer_, Observe(_, _, _)).Times(0); 382 EXPECT_CALL(observer_, Observe(_, _, _)).Times(0);
382 prefs_.Set(kName, new_value); 383 prefs_.Set(kName, new_value);
383 Mock::VerifyAndClearExpectations(&observer_); 384 Mock::VerifyAndClearExpectations(&observer_);
384 385
385 observer_.Expect(&prefs_, kName, null_value_.get()); 386 observer_.Expect(&prefs_, kName, null_value_.get());
386 prefs_.Set(kName, *null_value_); 387 prefs_.Set(kName, *null_value_);
387 Mock::VerifyAndClearExpectations(&observer_); 388 Mock::VerifyAndClearExpectations(&observer_);
388 } 389 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_mock_builder.cc ('k') | chrome/browser/prefs/pref_value_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698