| 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 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace gin { | 37 namespace gin { |
| 38 class ArrayBufferView; | 38 class ArrayBufferView; |
| 39 class Arguments; | 39 class Arguments; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace test_runner { | 42 namespace test_runner { |
| 43 | 43 |
| 44 class InvokeCallbackTask; | 44 class InvokeCallbackTask; |
| 45 class MockCredentialManagerClient; |
| 45 class MockScreenOrientationClient; | 46 class MockScreenOrientationClient; |
| 46 class MockWebSpeechRecognizer; | 47 class MockWebSpeechRecognizer; |
| 47 class MockWebUserMediaClient; | 48 class MockWebUserMediaClient; |
| 49 class SpellCheckClient; |
| 48 class TestInterfaces; | 50 class TestInterfaces; |
| 49 class WebContentSettings; | 51 class WebContentSettings; |
| 50 class WebTestDelegate; | 52 class WebTestDelegate; |
| 51 class WebTestProxyBase; | 53 class WebTestProxyBase; |
| 52 | 54 |
| 53 class TestRunner : public WebTestRunner, | 55 class TestRunner : public WebTestRunner, |
| 54 public base::SupportsWeakPtr<TestRunner> { | 56 public base::SupportsWeakPtr<TestRunner> { |
| 55 public: | 57 public: |
| 56 explicit TestRunner(TestInterfaces*); | 58 explicit TestRunner(TestInterfaces*); |
| 57 virtual ~TestRunner(); | 59 virtual ~TestRunner(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 79 bool IsRecursiveLayoutDumpRequested() override; | 81 bool IsRecursiveLayoutDumpRequested() override; |
| 80 std::string DumpLayout(blink::WebLocalFrame* frame) override; | 82 std::string DumpLayout(blink::WebLocalFrame* frame) override; |
| 81 void DumpPixelsAsync( | 83 void DumpPixelsAsync( |
| 82 blink::WebView* web_view, | 84 blink::WebView* web_view, |
| 83 const base::Callback<void(const SkBitmap&)>& callback) override; | 85 const base::Callback<void(const SkBitmap&)>& callback) override; |
| 84 void ReplicateLayoutTestRuntimeFlagsChanges( | 86 void ReplicateLayoutTestRuntimeFlagsChanges( |
| 85 const base::DictionaryValue& changed_values) override; | 87 const base::DictionaryValue& changed_values) override; |
| 86 bool HasCustomTextDump(std::string* custom_text_dump) const override; | 88 bool HasCustomTextDump(std::string* custom_text_dump) const override; |
| 87 bool ShouldDumpBackForwardList() const override; | 89 bool ShouldDumpBackForwardList() const override; |
| 88 blink::WebContentSettingsClient* GetWebContentSettings() const override; | 90 blink::WebContentSettingsClient* GetWebContentSettings() const override; |
| 91 void InitializeWebViewWithMocks(blink::WebView* web_view) override; |
| 89 | 92 |
| 90 // Methods used by WebViewTestClient and WebFrameTestClient. | 93 // Methods used by WebViewTestClient and WebFrameTestClient. |
| 91 void OnAnimationScheduled(blink::WebView* view); | 94 void OnAnimationScheduled(blink::WebView* view); |
| 92 void OnAnimationBegun(blink::WebView* view); | 95 void OnAnimationBegun(blink::WebView* view); |
| 93 std::string GetAcceptLanguages() const; | 96 std::string GetAcceptLanguages() const; |
| 94 bool shouldStayOnPageAfterHandlingBeforeUnload() const; | 97 bool shouldStayOnPageAfterHandlingBeforeUnload() const; |
| 95 MockScreenOrientationClient* getMockScreenOrientationClient(); | 98 MockScreenOrientationClient* getMockScreenOrientationClient(); |
| 96 MockWebUserMediaClient* getMockWebUserMediaClient(); | 99 MockWebUserMediaClient* getMockWebUserMediaClient(); |
| 97 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); | 100 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); |
| 98 bool isPrinting() const; | 101 bool isPrinting() const; |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 scoped_ptr<WebContentSettings> web_content_settings_; | 809 scoped_ptr<WebContentSettings> web_content_settings_; |
| 807 | 810 |
| 808 bool pointer_locked_; | 811 bool pointer_locked_; |
| 809 enum { | 812 enum { |
| 810 PointerLockWillSucceed, | 813 PointerLockWillSucceed, |
| 811 PointerLockWillRespondAsync, | 814 PointerLockWillRespondAsync, |
| 812 PointerLockWillFailSync, | 815 PointerLockWillFailSync, |
| 813 } pointer_lock_planned_result_; | 816 } pointer_lock_planned_result_; |
| 814 bool use_mock_theme_; | 817 bool use_mock_theme_; |
| 815 | 818 |
| 819 scoped_ptr<MockCredentialManagerClient> credential_manager_client_; |
| 816 scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_; | 820 scoped_ptr<MockScreenOrientationClient> mock_screen_orientation_client_; |
| 817 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; | 821 scoped_ptr<MockWebSpeechRecognizer> speech_recognizer_; |
| 818 scoped_ptr<MockWebUserMediaClient> user_media_client_; | 822 scoped_ptr<MockWebUserMediaClient> user_media_client_; |
| 823 scoped_ptr<SpellCheckClient> spellcheck_; |
| 819 | 824 |
| 820 // Number of currently active color choosers. | 825 // Number of currently active color choosers. |
| 821 int chooser_count_; | 826 int chooser_count_; |
| 822 | 827 |
| 823 // Captured drag image. | 828 // Captured drag image. |
| 824 blink::WebImage drag_image_; | 829 blink::WebImage drag_image_; |
| 825 | 830 |
| 826 std::set<blink::WebView*> views_with_scheduled_animations_; | 831 std::set<blink::WebView*> views_with_scheduled_animations_; |
| 827 | 832 |
| 828 base::WeakPtrFactory<TestRunner> weak_factory_; | 833 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 829 | 834 |
| 830 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 835 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 831 }; | 836 }; |
| 832 | 837 |
| 833 } // namespace test_runner | 838 } // namespace test_runner |
| 834 | 839 |
| 835 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 840 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |