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

Side by Side Diff: chrome/browser/invalidation/invalidator_storage_unittest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 "components/invalidation/invalidator_storage.h" 5 #include "components/invalidation/invalidator_storage.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "chrome/test/base/testing_pref_service_syncable.h" 10 #include "chrome/test/base/testing_pref_service_syncable.h"
11 #include "components/invalidation/unacked_invalidation_set_test_util.h" 11 #include "components/invalidation/unacked_invalidation_set_test_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace invalidation { 14 namespace invalidation {
15 15
16 class InvalidatorStorageTest : public testing::Test { 16 class InvalidatorStorageTest : public testing::Test {
17 public: 17 public:
18 InvalidatorStorageTest() {} 18 InvalidatorStorageTest() {}
19 19
20 virtual void SetUp() { 20 void SetUp() override {
21 InvalidatorStorage::RegisterProfilePrefs(pref_service_.registry()); 21 InvalidatorStorage::RegisterProfilePrefs(pref_service_.registry());
22 } 22 }
23 23
24 protected: 24 protected:
25 TestingPrefServiceSyncable pref_service_; 25 TestingPrefServiceSyncable pref_service_;
26 }; 26 };
27 27
28 // Clearing the storage should erase all version map entries, bootstrap data, 28 // Clearing the storage should erase all version map entries, bootstrap data,
29 // and the client ID. 29 // and the client ID.
30 TEST_F(InvalidatorStorageTest, Clear) { 30 TEST_F(InvalidatorStorageTest, Clear) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 map.insert(std::make_pair(storage2.object_id(), storage2)); 95 map.insert(std::make_pair(storage2.object_id(), storage2));
96 96
97 storage.SetSavedInvalidations(map); 97 storage.SetSavedInvalidations(map);
98 syncer::UnackedInvalidationsMap restored_map = 98 syncer::UnackedInvalidationsMap restored_map =
99 storage.GetSavedInvalidations(); 99 storage.GetSavedInvalidations();
100 100
101 EXPECT_THAT(map, syncer::test_util::Eq(restored_map)); 101 EXPECT_THAT(map, syncer::test_util::Eq(restored_map));
102 } 102 }
103 103
104 } // namespace invalidation 104 } // namespace invalidation
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698