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

Side by Side Diff: chrome/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/prefs/tracked/pref_service_hash_store_contents.h" 5 #include "chrome/browser/prefs/tracked/pref_service_hash_store_contents.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/testing_pref_service.h" 10 #include "base/prefs/testing_pref_service.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 class PrefServiceHashStoreContentsTest : public testing::Test { 14 class PrefServiceHashStoreContentsTest : public testing::Test {
15 public: 15 public:
16 virtual void SetUp() OVERRIDE { 16 virtual void SetUp() override {
17 PrefServiceHashStoreContents::RegisterPrefs(local_state_.registry()); 17 PrefServiceHashStoreContents::RegisterPrefs(local_state_.registry());
18 } 18 }
19 19
20 protected: 20 protected:
21 TestingPrefServiceSimple local_state_; 21 TestingPrefServiceSimple local_state_;
22 }; 22 };
23 23
24 TEST_F(PrefServiceHashStoreContentsTest, hash_store_id) { 24 TEST_F(PrefServiceHashStoreContentsTest, hash_store_id) {
25 PrefServiceHashStoreContents contents("store_id", &local_state_); 25 PrefServiceHashStoreContents contents("store_id", &local_state_);
26 ASSERT_EQ("store_id", contents.hash_store_id()); 26 ASSERT_EQ("store_id", contents.hash_store_id());
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 PrefServiceHashStoreContents::ResetAllPrefHashStores(&local_state_); 144 PrefServiceHashStoreContents::ResetAllPrefHashStores(&local_state_);
145 145
146 { 146 {
147 PrefServiceHashStoreContents contents_1("store_id_1", &local_state_); 147 PrefServiceHashStoreContents contents_1("store_id_1", &local_state_);
148 PrefServiceHashStoreContents contents_2("store_id_2", &local_state_); 148 PrefServiceHashStoreContents contents_2("store_id_2", &local_state_);
149 ASSERT_FALSE(contents_1.IsInitialized()); 149 ASSERT_FALSE(contents_1.IsInitialized());
150 ASSERT_FALSE(contents_2.IsInitialized()); 150 ASSERT_FALSE(contents_2.IsInitialized());
151 } 151 }
152 } 152 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/tracked/pref_service_hash_store_contents.cc ('k') | chrome/browser/prefs/tracked/segregated_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698