| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class WebTestProxyBase; | 52 class WebTestProxyBase; |
| 53 | 53 |
| 54 class TestRunner : public WebTestRunner { | 54 class TestRunner : public WebTestRunner { |
| 55 public: | 55 public: |
| 56 explicit TestRunner(TestInterfaces*); | 56 explicit TestRunner(TestInterfaces*); |
| 57 virtual ~TestRunner(); | 57 virtual ~TestRunner(); |
| 58 | 58 |
| 59 void Install(blink::WebFrame* frame); | 59 void Install(blink::WebFrame* frame); |
| 60 | 60 |
| 61 void SetDelegate(WebTestDelegate*); | 61 void SetDelegate(WebTestDelegate*); |
| 62 void SetWebView(blink::WebView*, WebTestProxyBase*); | 62 void SetWebView(blink::WebView*); |
| 63 | 63 |
| 64 void Reset(); | 64 void Reset(); |
| 65 | 65 |
| 66 void SetTestIsRunning(bool); | 66 void SetTestIsRunning(bool); |
| 67 bool TestIsRunning() const { return test_is_running_; } | 67 bool TestIsRunning() const { return test_is_running_; } |
| 68 | 68 |
| 69 bool UseMockTheme() const { return use_mock_theme_; } | 69 bool UseMockTheme() const { return use_mock_theme_; } |
| 70 | 70 |
| 71 // WebTestRunner implementation. | 71 // WebTestRunner implementation. |
| 72 bool ShouldGeneratePixelResults() override; | 72 bool ShouldGeneratePixelResults() override; |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 std::string custom_text_output_; | 783 std::string custom_text_output_; |
| 784 | 784 |
| 785 std::set<std::string> http_headers_to_clear_; | 785 std::set<std::string> http_headers_to_clear_; |
| 786 | 786 |
| 787 // WAV audio data is stored here. | 787 // WAV audio data is stored here. |
| 788 std::vector<unsigned char> audio_data_; | 788 std::vector<unsigned char> audio_data_; |
| 789 | 789 |
| 790 TestInterfaces* test_interfaces_; | 790 TestInterfaces* test_interfaces_; |
| 791 WebTestDelegate* delegate_; | 791 WebTestDelegate* delegate_; |
| 792 blink::WebView* web_view_; | 792 blink::WebView* web_view_; |
| 793 WebTestProxyBase* proxy_; | |
| 794 | 793 |
| 795 // This is non-0 IFF a load is in progress. | 794 // This is non-0 IFF a load is in progress. |
| 796 blink::WebFrame* top_loading_frame_; | 795 blink::WebFrame* top_loading_frame_; |
| 797 | 796 |
| 798 // WebContentSettingsClient mock object. | 797 // WebContentSettingsClient mock object. |
| 799 scoped_ptr<MockContentSettingsClient> mock_content_settings_client_; | 798 scoped_ptr<MockContentSettingsClient> mock_content_settings_client_; |
| 800 | 799 |
| 801 bool pointer_locked_; | 800 bool pointer_locked_; |
| 802 enum { | 801 enum { |
| 803 PointerLockWillSucceed, | 802 PointerLockWillSucceed, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 826 std::set<blink::WebView*> views_with_scheduled_animations_; | 825 std::set<blink::WebView*> views_with_scheduled_animations_; |
| 827 | 826 |
| 828 base::WeakPtrFactory<TestRunner> weak_factory_; | 827 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 829 | 828 |
| 830 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 829 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 831 }; | 830 }; |
| 832 | 831 |
| 833 } // namespace test_runner | 832 } // namespace test_runner |
| 834 | 833 |
| 835 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 834 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |