| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool shouldDumpUserGestureInFrameLoadCallbacks() const; | 124 bool shouldDumpUserGestureInFrameLoadCallbacks() const; |
| 125 bool shouldDumpTitleChanges() const; | 125 bool shouldDumpTitleChanges() const; |
| 126 bool shouldDumpIconChanges() const; | 126 bool shouldDumpIconChanges() const; |
| 127 bool shouldDumpCreateView() const; | 127 bool shouldDumpCreateView() const; |
| 128 bool canOpenWindows() const; | 128 bool canOpenWindows() const; |
| 129 bool shouldDumpResourceLoadCallbacks() const; | 129 bool shouldDumpResourceLoadCallbacks() const; |
| 130 bool shouldDumpResourceResponseMIMETypes() const; | 130 bool shouldDumpResourceResponseMIMETypes() const; |
| 131 bool shouldDumpStatusCallbacks() const; | 131 bool shouldDumpStatusCallbacks() const; |
| 132 bool shouldDumpSpellCheckCallbacks() const; | 132 bool shouldDumpSpellCheckCallbacks() const; |
| 133 bool shouldWaitUntilExternalURLLoad() const; | 133 bool shouldWaitUntilExternalURLLoad() const; |
| 134 bool shouldDumpConsoleLineNumbers() const; |
| 134 const std::set<std::string>* httpHeadersToClear() const; | 135 const std::set<std::string>* httpHeadersToClear() const; |
| 135 bool is_web_platform_tests_mode() const { | 136 bool is_web_platform_tests_mode() const { |
| 136 return is_web_platform_tests_mode_; | 137 return is_web_platform_tests_mode_; |
| 137 } | 138 } |
| 138 void set_is_web_platform_tests_mode() { is_web_platform_tests_mode_ = true; } | 139 void set_is_web_platform_tests_mode() { is_web_platform_tests_mode_ = true; } |
| 139 | 140 |
| 140 // To be called when |frame| starts loading - TestRunner will check if | 141 // To be called when |frame| starts loading - TestRunner will check if |
| 141 // there is currently no top-loading-frame being tracked and if so, then it | 142 // there is currently no top-loading-frame being tracked and if so, then it |
| 142 // will return true and start tracking |frame| as the top-loading-frame. | 143 // will return true and start tracking |frame| as the top-loading-frame. |
| 143 bool tryToSetTopLoadingFrame(blink::WebFrame* frame); | 144 bool tryToSetTopLoadingFrame(blink::WebFrame* frame); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 // changes. It takes no arguments, and ignores any that may be present. | 448 // changes. It takes no arguments, and ignores any that may be present. |
| 448 void DumpResourceRequestPriorities(); | 449 void DumpResourceRequestPriorities(); |
| 449 | 450 |
| 450 // Sets a flag to enable the mock theme. | 451 // Sets a flag to enable the mock theme. |
| 451 void SetUseMockTheme(bool use); | 452 void SetUseMockTheme(bool use); |
| 452 | 453 |
| 453 // Sets a flag that causes the test to be marked as completed when the | 454 // Sets a flag that causes the test to be marked as completed when the |
| 454 // WebFrameClient receives a loadURLExternally() call. | 455 // WebFrameClient receives a loadURLExternally() call. |
| 455 void WaitUntilExternalURLLoad(); | 456 void WaitUntilExternalURLLoad(); |
| 456 | 457 |
| 458 // Sets a flag that causes line numbers to be stripped from console messages |
| 459 // that are included in the test output. |
| 460 void StripLineNumbersFromConsoleMessages(); |
| 461 |
| 457 // This function sets a flag to dump the drag image when the next drag&drop is | 462 // This function sets a flag to dump the drag image when the next drag&drop is |
| 458 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel | 463 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel |
| 459 // results will be the drag image instead of a snapshot of the page. | 464 // results will be the drag image instead of a snapshot of the page. |
| 460 void DumpDragImage(); | 465 void DumpDragImage(); |
| 461 | 466 |
| 462 // Sets a flag that tells the WebViewTestProxy to dump the default navigation | 467 // Sets a flag that tells the WebViewTestProxy to dump the default navigation |
| 463 // policy passed to the decidePolicyForNavigation callback. | 468 // policy passed to the decidePolicyForNavigation callback. |
| 464 void DumpNavigationPolicy(); | 469 void DumpNavigationPolicy(); |
| 465 | 470 |
| 466 // Controls whether console messages produced by the page are dumped | 471 // Controls whether console messages produced by the page are dumped |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 bool is_web_platform_tests_mode_; | 642 bool is_web_platform_tests_mode_; |
| 638 | 643 |
| 639 base::WeakPtrFactory<TestRunner> weak_factory_; | 644 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 640 | 645 |
| 641 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 646 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 642 }; | 647 }; |
| 643 | 648 |
| 644 } // namespace test_runner | 649 } // namespace test_runner |
| 645 | 650 |
| 646 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 651 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |