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

Side by Side Diff: components/dom_distiller/core/fake_distiller_page.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (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 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 #ifndef COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_ 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_ 6 #define COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_
7 7
8 #include "components/dom_distiller/core/distiller_page.h" 8 #include "components/dom_distiller/core/distiller_page.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace dom_distiller { 11 namespace dom_distiller {
12 namespace test { 12 namespace test {
13 13
14 class MockDistillerPageFactory : public DistillerPageFactory { 14 class MockDistillerPageFactory : public DistillerPageFactory {
15 public: 15 public:
16 MockDistillerPageFactory(); 16 MockDistillerPageFactory();
17 virtual ~MockDistillerPageFactory(); 17 virtual ~MockDistillerPageFactory();
18 MOCK_CONST_METHOD0(CreateDistillerPageImpl, DistillerPage*()); 18 MOCK_CONST_METHOD0(CreateDistillerPageImpl, DistillerPage*());
19 virtual scoped_ptr<DistillerPage> CreateDistillerPage( 19 virtual scoped_ptr<DistillerPage> CreateDistillerPage(
20 const gfx::Size& render_view_size) const OVERRIDE { 20 const gfx::Size& render_view_size) const override {
21 return scoped_ptr<DistillerPage>(CreateDistillerPageImpl()); 21 return scoped_ptr<DistillerPage>(CreateDistillerPageImpl());
22 } 22 }
23 virtual scoped_ptr<DistillerPage> CreateDistillerPageWithHandle( 23 virtual scoped_ptr<DistillerPage> CreateDistillerPageWithHandle(
24 scoped_ptr<SourcePageHandle> handle) const OVERRIDE { 24 scoped_ptr<SourcePageHandle> handle) const override {
25 return scoped_ptr<DistillerPage>(CreateDistillerPageImpl()); 25 return scoped_ptr<DistillerPage>(CreateDistillerPageImpl());
26 } 26 }
27 }; 27 };
28 28
29 class MockDistillerPage : public DistillerPage { 29 class MockDistillerPage : public DistillerPage {
30 public: 30 public:
31 MockDistillerPage(); 31 MockDistillerPage();
32 virtual ~MockDistillerPage(); 32 virtual ~MockDistillerPage();
33 MOCK_METHOD2(DistillPageImpl, 33 MOCK_METHOD2(DistillPageImpl,
34 void(const GURL& gurl, const std::string& script)); 34 void(const GURL& gurl, const std::string& script));
35 }; 35 };
36 36
37 } // namespace test 37 } // namespace test
38 } // namespace dom_distiller 38 } // namespace dom_distiller
39 39
40 #endif // COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_ 40 #endif // COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/fake_distiller.h ('k') | components/dom_distiller/core/task_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698