| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Methods used by WebViewTestClient and WebFrameTestClient. | 93 // Methods used by WebViewTestClient and WebFrameTestClient. |
| 94 void OnAnimationScheduled(blink::WebView* view); | 94 void OnAnimationScheduled(blink::WebView* view); |
| 95 void OnAnimationBegun(blink::WebView* view); | 95 void OnAnimationBegun(blink::WebView* view); |
| 96 std::string GetAcceptLanguages() const; | 96 std::string GetAcceptLanguages() const; |
| 97 bool shouldStayOnPageAfterHandlingBeforeUnload() const; | 97 bool shouldStayOnPageAfterHandlingBeforeUnload() const; |
| 98 MockScreenOrientationClient* getMockScreenOrientationClient(); | 98 MockScreenOrientationClient* getMockScreenOrientationClient(); |
| 99 MockWebUserMediaClient* getMockWebUserMediaClient(); | 99 MockWebUserMediaClient* getMockWebUserMediaClient(); |
| 100 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); | 100 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); |
| 101 bool isPrinting() const; | 101 bool isPrinting() const; |
| 102 bool shouldDumpAsTextWithPixelResults(); | |
| 103 bool shouldDumpAsCustomText() const; | 102 bool shouldDumpAsCustomText() const; |
| 104 std:: string customDumpText() const; | 103 std:: string customDumpText() const; |
| 105 void ShowDevTools(const std::string& settings, | 104 void ShowDevTools(const std::string& settings, |
| 106 const std::string& frontend_url); | 105 const std::string& frontend_url); |
| 107 void ClearDevToolsLocalStorage(); | 106 void ClearDevToolsLocalStorage(); |
| 108 void setShouldDumpAsText(bool); | 107 void setShouldDumpAsText(bool); |
| 109 void setShouldDumpAsMarkup(bool); | 108 void setShouldDumpAsMarkup(bool); |
| 110 void setCustomTextOutput(const std::string& text); | 109 void setCustomTextOutput(const std::string& text); |
| 111 void setShouldGeneratePixelResults(bool); | 110 void setShouldGeneratePixelResults(bool); |
| 112 void setShouldDumpFrameLoadCallbacks(bool); | 111 void setShouldDumpFrameLoadCallbacks(bool); |
| 113 void setShouldDumpPingLoaderCallbacks(bool); | |
| 114 void setShouldEnableViewSource(bool); | 112 void setShouldEnableViewSource(bool); |
| 115 bool shouldDumpEditingCallbacks() const; | 113 bool shouldDumpEditingCallbacks() const; |
| 116 bool shouldDumpFrameLoadCallbacks() const; | 114 bool shouldDumpFrameLoadCallbacks() const; |
| 117 bool shouldDumpPingLoaderCallbacks() const; | 115 bool shouldDumpPingLoaderCallbacks() const; |
| 118 bool shouldDumpUserGestureInFrameLoadCallbacks() const; | 116 bool shouldDumpUserGestureInFrameLoadCallbacks() const; |
| 119 bool shouldDumpTitleChanges() const; | 117 bool shouldDumpTitleChanges() const; |
| 120 bool shouldDumpIconChanges() const; | 118 bool shouldDumpIconChanges() const; |
| 121 bool shouldDumpCreateView() const; | 119 bool shouldDumpCreateView() const; |
| 122 bool canOpenWindows() const; | 120 bool canOpenWindows() const; |
| 123 bool shouldDumpResourceLoadCallbacks() const; | 121 bool shouldDumpResourceLoadCallbacks() const; |
| 124 bool shouldDumpResourceRequestCallbacks() const; | |
| 125 bool shouldDumpResourceResponseMIMETypes() const; | 122 bool shouldDumpResourceResponseMIMETypes() const; |
| 126 bool shouldDumpStatusCallbacks() const; | 123 bool shouldDumpStatusCallbacks() const; |
| 127 bool shouldDumpSpellCheckCallbacks() const; | 124 bool shouldDumpSpellCheckCallbacks() const; |
| 128 bool shouldWaitUntilExternalURLLoad() const; | 125 bool shouldWaitUntilExternalURLLoad() const; |
| 129 const std::set<std::string>* httpHeadersToClear() const; | 126 const std::set<std::string>* httpHeadersToClear() const; |
| 130 void setTopLoadingFrame(blink::WebFrame*, bool); | 127 void setTopLoadingFrame(blink::WebFrame*, bool); |
| 131 blink::WebFrame* topLoadingFrame() const; | 128 blink::WebFrame* topLoadingFrame() const; |
| 132 void policyDelegateDone(); | 129 void policyDelegateDone(); |
| 133 bool policyDelegateEnabled() const; | 130 bool policyDelegateEnabled() const; |
| 134 bool policyDelegateIsPermissive() const; | 131 bool policyDelegateIsPermissive() const; |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 std::set<blink::WebView*> views_with_scheduled_animations_; | 828 std::set<blink::WebView*> views_with_scheduled_animations_; |
| 832 | 829 |
| 833 base::WeakPtrFactory<TestRunner> weak_factory_; | 830 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 834 | 831 |
| 835 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 832 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 836 }; | 833 }; |
| 837 | 834 |
| 838 } // namespace test_runner | 835 } // namespace test_runner |
| 839 | 836 |
| 840 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 837 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |