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

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

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indent fixes (full git cl format) Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_
7
8 #include "components/dom_distiller/core/distiller_page.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace dom_distiller {
12 namespace test {
13
14 class MockDistillerPageFactory : public DistillerPageFactory {
15 public:
16 MockDistillerPageFactory();
17 virtual ~MockDistillerPageFactory();
18 MOCK_CONST_METHOD0(CreateDistillerPageImpl, DistillerPage*());
19 virtual scoped_ptr<DistillerPage> CreateDistillerPage() const OVERRIDE {
20 return scoped_ptr<DistillerPage>(CreateDistillerPageImpl());
21 }
22 };
23
24 class MockDistillerPage : public DistillerPage {
25 public:
26 MockDistillerPage();
27 virtual ~MockDistillerPage();
28 MOCK_METHOD2(DistillPageImpl,
29 void(const GURL& gurl, const std::string& script));
30 };
31
32 } // namespace test
33 } // namespace dom_distiller
34
35 #endif // COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_
OLDNEW
« no previous file with comments | « components/dom_distiller/core/fake_distiller.cc ('k') | components/dom_distiller/core/fake_distiller_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698