| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 void DumpDragImage(); | 456 void DumpDragImage(); |
| 457 | 457 |
| 458 // Sets a flag that tells the WebViewTestProxy to dump the default navigation | 458 // Sets a flag that tells the WebViewTestProxy to dump the default navigation |
| 459 // policy passed to the decidePolicyForNavigation callback. | 459 // policy passed to the decidePolicyForNavigation callback. |
| 460 void DumpNavigationPolicy(); | 460 void DumpNavigationPolicy(); |
| 461 | 461 |
| 462 // Controls whether console messages produced by the page are dumped | 462 // Controls whether console messages produced by the page are dumped |
| 463 // to test output. | 463 // to test output. |
| 464 void SetDumpConsoleMessages(bool value); | 464 void SetDumpConsoleMessages(bool value); |
| 465 | 465 |
| 466 // Controls whether the mock spell checker is enabled. |
| 467 void SetMockSpellCheckerEnabled(bool enabled); |
| 468 |
| 466 /////////////////////////////////////////////////////////////////////////// | 469 /////////////////////////////////////////////////////////////////////////// |
| 467 // Methods interacting with the WebViewTestProxy | 470 // Methods interacting with the WebViewTestProxy |
| 468 | 471 |
| 469 /////////////////////////////////////////////////////////////////////////// | 472 /////////////////////////////////////////////////////////////////////////// |
| 470 // Methods forwarding to the WebTestDelegate | 473 // Methods forwarding to the WebTestDelegate |
| 471 | 474 |
| 472 // Shows DevTools window. | 475 // Shows DevTools window. |
| 473 void ShowWebInspector(const std::string& str, | 476 void ShowWebInspector(const std::string& str, |
| 474 const std::string& frontend_url); | 477 const std::string& frontend_url); |
| 475 void CloseWebInspector(); | 478 void CloseWebInspector(); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 bool is_web_platform_tests_mode_; | 642 bool is_web_platform_tests_mode_; |
| 640 | 643 |
| 641 base::WeakPtrFactory<TestRunner> weak_factory_; | 644 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 642 | 645 |
| 643 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 646 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 644 }; | 647 }; |
| 645 | 648 |
| 646 } // namespace test_runner | 649 } // namespace test_runner |
| 647 | 650 |
| 648 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 651 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |