| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void SetTestIsRunning(bool); | 79 void SetTestIsRunning(bool); |
| 80 bool TestIsRunning() const { return test_is_running_; } | 80 bool TestIsRunning() const { return test_is_running_; } |
| 81 | 81 |
| 82 bool UseMockTheme() const { return use_mock_theme_; } | 82 bool UseMockTheme() const { return use_mock_theme_; } |
| 83 | 83 |
| 84 // WebTestRunner implementation. | 84 // WebTestRunner implementation. |
| 85 bool ShouldGeneratePixelResults() override; | 85 bool ShouldGeneratePixelResults() override; |
| 86 bool ShouldDumpAsAudio() const override; | 86 bool ShouldDumpAsAudio() const override; |
| 87 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; | 87 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; |
| 88 bool IsRecursiveLayoutDumpRequested() override; | 88 bool IsRecursiveLayoutDumpRequested() override; |
| 89 void RunPendingAnimations() override; |
| 89 std::string DumpLayout(blink::WebLocalFrame* frame) override; | 90 std::string DumpLayout(blink::WebLocalFrame* frame) override; |
| 90 void DumpPixelsAsync( | 91 void DumpPixelsAsync( |
| 91 blink::WebView* web_view, | 92 blink::WebView* web_view, |
| 92 const base::Callback<void(const SkBitmap&)>& callback) override; | 93 const base::Callback<void(const SkBitmap&)>& callback) override; |
| 93 void ReplicateLayoutTestRuntimeFlagsChanges( | 94 void ReplicateLayoutTestRuntimeFlagsChanges( |
| 94 const base::DictionaryValue& changed_values) override; | 95 const base::DictionaryValue& changed_values) override; |
| 95 bool HasCustomTextDump(std::string* custom_text_dump) const override; | 96 bool HasCustomTextDump(std::string* custom_text_dump) const override; |
| 96 bool ShouldDumpBackForwardList() const override; | 97 bool ShouldDumpBackForwardList() const override; |
| 97 blink::WebContentSettingsClient* GetWebContentSettings() const override; | 98 blink::WebContentSettingsClient* GetWebContentSettings() const override; |
| 98 void InitializeWebViewWithMocks(blink::WebView* web_view) override; | 99 void InitializeWebViewWithMocks(blink::WebView* web_view) override; |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 bool is_web_platform_tests_mode_; | 642 bool is_web_platform_tests_mode_; |
| 642 | 643 |
| 643 base::WeakPtrFactory<TestRunner> weak_factory_; | 644 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 644 | 645 |
| 645 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 646 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 646 }; | 647 }; |
| 647 | 648 |
| 648 } // namespace test_runner | 649 } // namespace test_runner |
| 649 | 650 |
| 650 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 651 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |