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

Side by Side Diff: base/prefs/pref_value_store_unittest.cc

Issue 804533005: Standardize usage of virtual/override/final specifiers in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify Created 6 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
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 <string> 5 #include <string>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/prefs/pref_notifier.h" 10 #include "base/prefs/pref_notifier.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const char kSupervisedUserValue[] = "default:supervised_user"; 91 const char kSupervisedUserValue[] = "default:supervised_user";
92 const char kExtensionValue[] = "default:extension"; 92 const char kExtensionValue[] = "default:extension";
93 const char kCommandLineValue[] = "default:command_line"; 93 const char kCommandLineValue[] = "default:command_line";
94 const char kUserValue[] = "default:user"; 94 const char kUserValue[] = "default:user";
95 const char kRecommendedValue[] = "default:recommended"; 95 const char kRecommendedValue[] = "default:recommended";
96 const char kDefaultValue[] = "default:default"; 96 const char kDefaultValue[] = "default:default";
97 } 97 }
98 98
99 class PrefValueStoreTest : public testing::Test { 99 class PrefValueStoreTest : public testing::Test {
100 protected: 100 protected:
101 virtual void SetUp() { 101 void SetUp() override {
102 // Create TestingPrefStores. 102 // Create TestingPrefStores.
103 CreateManagedPrefs(); 103 CreateManagedPrefs();
104 CreateSupervisedUserPrefs(); 104 CreateSupervisedUserPrefs();
105 CreateExtensionPrefs(); 105 CreateExtensionPrefs();
106 CreateCommandLinePrefs(); 106 CreateCommandLinePrefs();
107 CreateUserPrefs(); 107 CreateUserPrefs();
108 CreateRecommendedPrefs(); 108 CreateRecommendedPrefs();
109 CreateDefaultPrefs(); 109 CreateDefaultPrefs();
110 sync_associator_.reset(new MockPrefModelAssociator()); 110 sync_associator_.reset(new MockPrefModelAssociator());
111 111
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 prefs::kCommandLinePref)); 661 prefs::kCommandLinePref));
662 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable( 662 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable(
663 prefs::kUserPref)); 663 prefs::kUserPref));
664 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable( 664 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable(
665 prefs::kRecommendedPref)); 665 prefs::kRecommendedPref));
666 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable( 666 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable(
667 prefs::kDefaultPref)); 667 prefs::kDefaultPref));
668 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable( 668 EXPECT_TRUE(pref_value_store_->PrefValueExtensionModifiable(
669 prefs::kMissingPref)); 669 prefs::kMissingPref));
670 } 670 }
OLDNEW
« no previous file with comments | « base/prefs/pref_notifier_impl_unittest.cc ('k') | base/prefs/scoped_user_pref_update_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698