| OLD | NEW |
| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 bool StringifyOutput() override { return false; }; |
| 34 bool CreateNewContext() override { return false; }; |
| 33 MOCK_METHOD2(DistillPageImpl, | 35 MOCK_METHOD2(DistillPageImpl, |
| 34 void(const GURL& gurl, const std::string& script)); | 36 void(const GURL& gurl, const std::string& script)); |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 } // namespace test | 39 } // namespace test |
| 38 } // namespace dom_distiller | 40 } // namespace dom_distiller |
| 39 | 41 |
| 40 #endif // COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_ | 42 #endif // COMPONENTS_DOM_DISTILLER_CORE_FAKE_DISTILLER_PAGE_H_ |
| OLD | NEW |