| 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // This function sets a flag that tells the test_shell to print a line of | 412 // This function sets a flag that tells the test_shell to print a line of |
| 413 // descriptive text for each element that requested a resource. It takes no | 413 // descriptive text for each element that requested a resource. It takes no |
| 414 // arguments, and ignores any that may be present. | 414 // arguments, and ignores any that may be present. |
| 415 void DumpResourceRequestCallbacks(); | 415 void DumpResourceRequestCallbacks(); |
| 416 | 416 |
| 417 // This function sets a flag that tells the test_shell to dump the MIME type | 417 // This function sets a flag that tells the test_shell to dump the MIME type |
| 418 // for each resource that was loaded. It takes no arguments, and ignores any | 418 // for each resource that was loaded. It takes no arguments, and ignores any |
| 419 // that may be present. | 419 // that may be present. |
| 420 void DumpResourceResponseMIMETypes(); | 420 void DumpResourceResponseMIMETypes(); |
| 421 | 421 |
| 422 // Will block script execution and loading during a given interval. |
| 423 void Sleep(int milliseconds); |
| 424 |
| 422 // WebPermissionClient related. | 425 // WebPermissionClient related. |
| 423 void SetImagesAllowed(bool allowed); | 426 void SetImagesAllowed(bool allowed); |
| 424 void SetMediaAllowed(bool allowed); | 427 void SetMediaAllowed(bool allowed); |
| 425 void SetScriptsAllowed(bool allowed); | 428 void SetScriptsAllowed(bool allowed); |
| 426 void SetStorageAllowed(bool allowed); | 429 void SetStorageAllowed(bool allowed); |
| 427 void SetPluginsAllowed(bool allowed); | 430 void SetPluginsAllowed(bool allowed); |
| 428 void SetAllowDisplayOfInsecureContent(bool allowed); | 431 void SetAllowDisplayOfInsecureContent(bool allowed); |
| 429 void SetAllowRunningOfInsecureContent(bool allowed); | 432 void SetAllowRunningOfInsecureContent(bool allowed); |
| 430 void DumpPermissionClientCallbacks(); | 433 void DumpPermissionClientCallbacks(); |
| 431 | 434 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 bool use_mock_theme_; | 784 bool use_mock_theme_; |
| 782 | 785 |
| 783 base::WeakPtrFactory<TestRunner> weak_factory_; | 786 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 784 | 787 |
| 785 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 788 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 786 }; | 789 }; |
| 787 | 790 |
| 788 } // namespace content | 791 } // namespace content |
| 789 | 792 |
| 790 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 793 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |