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_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 bool TestIsRunning() const { return test_is_running_; } | 66 bool TestIsRunning() const { return test_is_running_; } |
67 | 67 |
68 bool UseMockTheme() const { return use_mock_theme_; } | 68 bool UseMockTheme() const { return use_mock_theme_; } |
69 | 69 |
70 void InvokeCallback(scoped_ptr<InvokeCallbackTask> callback); | 70 void InvokeCallback(scoped_ptr<InvokeCallbackTask> callback); |
71 | 71 |
72 // WebTestRunner implementation. | 72 // WebTestRunner implementation. |
73 bool ShouldGeneratePixelResults() override; | 73 bool ShouldGeneratePixelResults() override; |
74 bool ShouldDumpAsAudio() const override; | 74 bool ShouldDumpAsAudio() const override; |
75 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; | 75 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; |
76 const LayoutDumpFlags& GetLayoutDumpFlags() override; | 76 bool IsRecursiveLayoutDumpRequested() override; |
| 77 std::string DumpLayout(blink::WebLocalFrame* frame) override; |
77 void ReplicateLayoutDumpFlagsChanges( | 78 void ReplicateLayoutDumpFlagsChanges( |
78 const base::DictionaryValue& changed_values) override; | 79 const base::DictionaryValue& changed_values) override; |
79 bool HasCustomTextDump(std::string* custom_text_dump) const override; | 80 bool HasCustomTextDump(std::string* custom_text_dump) const override; |
80 bool ShouldDumpBackForwardList() const override; | 81 bool ShouldDumpBackForwardList() const override; |
81 blink::WebContentSettingsClient* GetWebContentSettings() const override; | 82 blink::WebContentSettingsClient* GetWebContentSettings() const override; |
82 | 83 |
83 // Methods used by WebTestProxyBase. | 84 // Methods used by WebTestProxyBase. |
84 bool shouldStayOnPageAfterHandlingBeforeUnload() const; | 85 bool shouldStayOnPageAfterHandlingBeforeUnload() const; |
85 MockScreenOrientationClient* getMockScreenOrientationClient(); | 86 MockScreenOrientationClient* getMockScreenOrientationClient(); |
86 bool shouldDumpSelectionRect() const; | 87 bool shouldDumpSelectionRect() const; |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_; | 818 scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_; |
818 | 819 |
819 base::WeakPtrFactory<TestRunner> weak_factory_; | 820 base::WeakPtrFactory<TestRunner> weak_factory_; |
820 | 821 |
821 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 822 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
822 }; | 823 }; |
823 | 824 |
824 } // namespace test_runner | 825 } // namespace test_runner |
825 | 826 |
826 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 827 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |