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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 bool shouldStayOnPageAfterHandlingBeforeUnload() const; | 110 bool shouldStayOnPageAfterHandlingBeforeUnload() const; |
111 MockScreenOrientationClient* getMockScreenOrientationClient(); | 111 MockScreenOrientationClient* getMockScreenOrientationClient(); |
112 MockWebUserMediaClient* getMockWebUserMediaClient(); | 112 MockWebUserMediaClient* getMockWebUserMediaClient(); |
113 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); | 113 MockWebSpeechRecognizer* getMockWebSpeechRecognizer(); |
114 bool isPrinting() const; | 114 bool isPrinting() const; |
115 bool shouldDumpAsCustomText() const; | 115 bool shouldDumpAsCustomText() const; |
116 std:: string customDumpText() const; | 116 std:: string customDumpText() const; |
117 void ShowDevTools(const std::string& settings, | 117 void ShowDevTools(const std::string& settings, |
118 const std::string& frontend_url); | 118 const std::string& frontend_url); |
119 void ClearDevToolsLocalStorage(); | 119 void ClearDevToolsLocalStorage(); |
| 120 void SetV8CacheDisabled(bool); |
120 void setShouldDumpAsText(bool); | 121 void setShouldDumpAsText(bool); |
121 void setShouldDumpAsMarkup(bool); | 122 void setShouldDumpAsMarkup(bool); |
122 void setCustomTextOutput(const std::string& text); | 123 void setCustomTextOutput(const std::string& text); |
123 void setShouldGeneratePixelResults(bool); | 124 void setShouldGeneratePixelResults(bool); |
124 void setShouldDumpFrameLoadCallbacks(bool); | 125 void setShouldDumpFrameLoadCallbacks(bool); |
125 void setShouldEnableViewSource(bool); | 126 void setShouldEnableViewSource(bool); |
126 bool shouldDumpEditingCallbacks() const; | 127 bool shouldDumpEditingCallbacks() const; |
127 bool shouldDumpFrameLoadCallbacks() const; | 128 bool shouldDumpFrameLoadCallbacks() const; |
128 bool shouldDumpPingLoaderCallbacks() const; | 129 bool shouldDumpPingLoaderCallbacks() const; |
129 bool shouldDumpUserGestureInFrameLoadCallbacks() const; | 130 bool shouldDumpUserGestureInFrameLoadCallbacks() const; |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 // Note - this can be a dangling pointer to an already destroyed WebView (this | 651 // Note - this can be a dangling pointer to an already destroyed WebView (this |
651 // is ok, because this is taken care of in WebTestDelegate::SetFocus). | 652 // is ok, because this is taken care of in WebTestDelegate::SetFocus). |
652 blink::WebView* previously_focused_view_; | 653 blink::WebView* previously_focused_view_; |
653 | 654 |
654 // True if we run a test in LayoutTests/imported/{csswg-test,wpt}/. | 655 // True if we run a test in LayoutTests/imported/{csswg-test,wpt}/. |
655 bool is_web_platform_tests_mode_; | 656 bool is_web_platform_tests_mode_; |
656 | 657 |
657 // An effective connection type settable by layout tests. | 658 // An effective connection type settable by layout tests. |
658 blink::WebEffectiveConnectionType effective_connection_type_; | 659 blink::WebEffectiveConnectionType effective_connection_type_; |
659 | 660 |
| 661 // Forces v8 compilation cache to be disabled (used for inspector tests). |
| 662 bool disable_v8_cache_ = false; |
| 663 |
660 base::WeakPtrFactory<TestRunner> weak_factory_; | 664 base::WeakPtrFactory<TestRunner> weak_factory_; |
661 | 665 |
662 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 666 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
663 }; | 667 }; |
664 | 668 |
665 } // namespace test_runner | 669 } // namespace test_runner |
666 | 670 |
667 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 671 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |