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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 452 |
453 // Sets a flag that causes the test to be marked as completed when the | 453 // Sets a flag that causes the test to be marked as completed when the |
454 // WebFrameClient receives a loadURLExternally() call. | 454 // WebFrameClient receives a loadURLExternally() call. |
455 void WaitUntilExternalURLLoad(); | 455 void WaitUntilExternalURLLoad(); |
456 | 456 |
457 // This function sets a flag to dump the drag image when the next drag&drop is | 457 // 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 | 458 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel |
459 // results will be the drag image instead of a snapshot of the page. | 459 // results will be the drag image instead of a snapshot of the page. |
460 void DumpDragImage(); | 460 void DumpDragImage(); |
461 | 461 |
462 // Sets a flag that tells the WebTestProxy to dump the default navigation | 462 // Sets a flag that tells the WebViewTestProxy to dump the default navigation |
463 // policy passed to the decidePolicyForNavigation callback. | 463 // policy passed to the decidePolicyForNavigation callback. |
464 void DumpNavigationPolicy(); | 464 void DumpNavigationPolicy(); |
465 | 465 |
466 // Controls whether console messages produced by the page are dumped | 466 // Controls whether console messages produced by the page are dumped |
467 // to test output. | 467 // to test output. |
468 void SetDumpConsoleMessages(bool value); | 468 void SetDumpConsoleMessages(bool value); |
469 | 469 |
470 /////////////////////////////////////////////////////////////////////////// | 470 /////////////////////////////////////////////////////////////////////////// |
471 // Methods interacting with the WebTestProxy | 471 // Methods interacting with the WebViewTestProxy |
472 | 472 |
473 /////////////////////////////////////////////////////////////////////////// | 473 /////////////////////////////////////////////////////////////////////////// |
474 // Methods forwarding to the WebTestDelegate | 474 // Methods forwarding to the WebTestDelegate |
475 | 475 |
476 // Shows DevTools window. | 476 // Shows DevTools window. |
477 void ShowWebInspector(const std::string& str, | 477 void ShowWebInspector(const std::string& str, |
478 const std::string& frontend_url); | 478 const std::string& frontend_url); |
479 void CloseWebInspector(); | 479 void CloseWebInspector(); |
480 | 480 |
481 // Inspect chooser state | 481 // Inspect chooser state |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 bool is_web_platform_tests_mode_; | 637 bool is_web_platform_tests_mode_; |
638 | 638 |
639 base::WeakPtrFactory<TestRunner> weak_factory_; | 639 base::WeakPtrFactory<TestRunner> weak_factory_; |
640 | 640 |
641 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 641 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
642 }; | 642 }; |
643 | 643 |
644 } // namespace test_runner | 644 } // namespace test_runner |
645 | 645 |
646 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 646 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |