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

Side by Side Diff: extensions/browser/api/declarative/deduping_factory_unittest.cc

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (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 "extensions/browser/api/declarative/deduping_factory.h" 5 #include "extensions/browser/api/declarative/deduping_factory.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace { 10 namespace {
(...skipping 20 matching lines...) Expand all
31 friend class base::RefCounted<BaseClass>; 31 friend class base::RefCounted<BaseClass>;
32 virtual ~BaseClass() {} 32 virtual ~BaseClass() {}
33 33
34 private: 34 private:
35 const Type type_; 35 const Type type_;
36 }; 36 };
37 37
38 class Foo : public BaseClass { 38 class Foo : public BaseClass {
39 public: 39 public:
40 explicit Foo(int parameter) : BaseClass(FOO), parameter_(parameter) {} 40 explicit Foo(int parameter) : BaseClass(FOO), parameter_(parameter) {}
41 virtual bool Equals(const BaseClass* other) const OVERRIDE { 41 virtual bool Equals(const BaseClass* other) const override {
42 return other->type() == type() && 42 return other->type() == type() &&
43 static_cast<const Foo*>(other)->parameter_ == parameter_; 43 static_cast<const Foo*>(other)->parameter_ == parameter_;
44 } 44 }
45 int parameter() const { 45 int parameter() const {
46 return parameter_; 46 return parameter_;
47 } 47 }
48 48
49 private: 49 private:
50 friend class base::RefCounted<BaseClass>; 50 friend class base::RefCounted<BaseClass>;
51 virtual ~Foo() {} 51 virtual ~Foo() {}
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 scoped_refptr<const BaseClass> c1_b( 191 scoped_refptr<const BaseClass> c1_b(
192 factory.Instantiate(kTypeName, d1.get(), &error, &bad_message)); 192 factory.Instantiate(kTypeName, d1.get(), &error, &bad_message));
193 193
194 ASSERT_TRUE(c1_a.get()); 194 ASSERT_TRUE(c1_a.get());
195 ASSERT_TRUE(c1_b.get()); 195 ASSERT_TRUE(c1_b.get());
196 EXPECT_NE(c1_a, c1_b); 196 EXPECT_NE(c1_a, c1_b);
197 } 197 }
198 198
199 } // namespace extensions 199 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/declarative/declarative_api.h ('k') | extensions/browser/api/declarative/rules_registry_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698