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

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

Issue 5204006: Renamed DefaultPrefStore into InMemoryPrefStore because it can be used in further contexts. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased 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/default_pref_store.h"
16 #include "chrome/browser/prefs/dummy_pref_store.h" 15 #include "chrome/browser/prefs/dummy_pref_store.h"
17 #include "chrome/browser/prefs/pref_change_registrar.h" 16 #include "chrome/browser/prefs/pref_change_registrar.h"
18 #include "chrome/browser/prefs/pref_value_store.h" 17 #include "chrome/browser/prefs/pref_value_store.h"
19 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
20 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/notification_observer_mock.h" 20 #include "chrome/common/notification_observer_mock.h"
22 #include "chrome/common/notification_service.h" 21 #include "chrome/common/notification_service.h"
23 #include "chrome/common/notification_type.h" 22 #include "chrome/common/notification_type.h"
24 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
25 #include "chrome/test/testing_pref_service.h" 24 #include "chrome/test/testing_pref_service.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 SetExpectNoNotification(); 448 SetExpectNoNotification();
450 prefs_.Set(kName, new_value); 449 prefs_.Set(kName, new_value);
451 Mock::VerifyAndClearExpectations(&observer_); 450 Mock::VerifyAndClearExpectations(&observer_);
452 451
453 SetExpectPrefChanged(); 452 SetExpectPrefChanged();
454 prefs_.Set(kName, *null_value_); 453 prefs_.Set(kName, *null_value_);
455 Mock::VerifyAndClearExpectations(&observer_); 454 Mock::VerifyAndClearExpectations(&observer_);
456 list = prefs_.GetMutableList(kName); 455 list = prefs_.GetMutableList(kName);
457 EXPECT_EQ(0U, list->GetSize()); 456 EXPECT_EQ(0U, list->GetSize());
458 } 457 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_notifier_unittest.cc ('k') | chrome/browser/prefs/pref_value_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698