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

Side by Side Diff: extensions/browser/runtime_data_unittest.cc

Issue 685503002: 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 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 "extensions/browser/runtime_data.h" 5 #include "extensions/browser/runtime_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "extensions/browser/extension_registry.h" 10 #include "extensions/browser/extension_registry.h"
(...skipping 14 matching lines...) Expand all
25 .Set("name", "test") 25 .Set("name", "test")
26 .Set("version", "0.1") 26 .Set("version", "0.1")
27 .Set("background", DictionaryBuilder().Set("page", "bg.html"))) 27 .Set("background", DictionaryBuilder().Set("page", "bg.html")))
28 .SetID("id2") 28 .SetID("id2")
29 .Build(); 29 .Build();
30 } 30 }
31 31
32 class RuntimeDataTest : public testing::Test { 32 class RuntimeDataTest : public testing::Test {
33 public: 33 public:
34 RuntimeDataTest() : registry_(NULL), runtime_data_(&registry_) {} 34 RuntimeDataTest() : registry_(NULL), runtime_data_(&registry_) {}
35 virtual ~RuntimeDataTest() {} 35 ~RuntimeDataTest() override {}
36 36
37 protected: 37 protected:
38 ExtensionRegistry registry_; 38 ExtensionRegistry registry_;
39 RuntimeData runtime_data_; 39 RuntimeData runtime_data_;
40 40
41 private: 41 private:
42 DISALLOW_COPY_AND_ASSIGN(RuntimeDataTest); 42 DISALLOW_COPY_AND_ASSIGN(RuntimeDataTest);
43 }; 43 };
44 44
45 TEST_F(RuntimeDataTest, IsBackgroundPageReady) { 45 TEST_F(RuntimeDataTest, IsBackgroundPageReady) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 runtime_data_.SetBackgroundPageReady(extension.get(), true); 91 runtime_data_.SetBackgroundPageReady(extension.get(), true);
92 ASSERT_TRUE(runtime_data_.HasExtensionForTesting(extension.get())); 92 ASSERT_TRUE(runtime_data_.HasExtensionForTesting(extension.get()));
93 93
94 runtime_data_.OnExtensionUnloaded( 94 runtime_data_.OnExtensionUnloaded(
95 NULL, extension.get(), UnloadedExtensionInfo::REASON_DISABLE); 95 NULL, extension.get(), UnloadedExtensionInfo::REASON_DISABLE);
96 EXPECT_FALSE(runtime_data_.HasExtensionForTesting(extension.get())); 96 EXPECT_FALSE(runtime_data_.HasExtensionForTesting(extension.get()));
97 } 97 }
98 98
99 } // namespace 99 } // namespace
100 } // namespace extensions 100 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/quota_service_unittest.cc ('k') | extensions/browser/value_store/leveldb_value_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698