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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // WebContentSettingsClient related. | 402 // WebContentSettingsClient related. |
403 void SetImagesAllowed(bool allowed); | 403 void SetImagesAllowed(bool allowed); |
404 void SetScriptsAllowed(bool allowed); | 404 void SetScriptsAllowed(bool allowed); |
405 void SetStorageAllowed(bool allowed); | 405 void SetStorageAllowed(bool allowed); |
406 void SetPluginsAllowed(bool allowed); | 406 void SetPluginsAllowed(bool allowed); |
407 void SetAllowDisplayOfInsecureContent(bool allowed); | 407 void SetAllowDisplayOfInsecureContent(bool allowed); |
408 void SetAllowRunningOfInsecureContent(bool allowed); | 408 void SetAllowRunningOfInsecureContent(bool allowed); |
409 void SetAutoplayAllowed(bool allowed); | 409 void SetAutoplayAllowed(bool allowed); |
410 void DumpPermissionClientCallbacks(); | 410 void DumpPermissionClientCallbacks(); |
411 | 411 |
| 412 // Sets up a mock DocumentSubresourceFilter to disallow subsequent subresource |
| 413 // loads within the current document with the given path |suffixes|. The |
| 414 // filter is created and injected even if |suffixes| is empty. If |suffixes| |
| 415 // contains the empty string, all subresource loads will be disallowed. |
| 416 void SetDisallowedSubresourcePathSuffixes( |
| 417 const std::vector<std::string>& suffixes); |
| 418 |
412 // This function sets a flag that tells the test_shell to dump all calls | 419 // This function sets a flag that tells the test_shell to dump all calls |
413 // to window.status(). | 420 // to window.status(). |
414 // It takes no arguments, and ignores any that may be present. | 421 // It takes no arguments, and ignores any that may be present. |
415 void DumpWindowStatusChanges(); | 422 void DumpWindowStatusChanges(); |
416 | 423 |
417 // This function sets a flag that tells the test_shell to dump all | 424 // This function sets a flag that tells the test_shell to dump all |
418 // the lines of descriptive text about spellcheck execution. | 425 // the lines of descriptive text about spellcheck execution. |
419 void DumpSpellCheckCallbacks(); | 426 void DumpSpellCheckCallbacks(); |
420 | 427 |
421 // This function sets a flag that tells the test_shell to print out a text | 428 // This function sets a flag that tells the test_shell to print out a text |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 bool is_web_platform_tests_mode_; | 635 bool is_web_platform_tests_mode_; |
629 | 636 |
630 base::WeakPtrFactory<TestRunner> weak_factory_; | 637 base::WeakPtrFactory<TestRunner> weak_factory_; |
631 | 638 |
632 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 639 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
633 }; | 640 }; |
634 | 641 |
635 } // namespace test_runner | 642 } // namespace test_runner |
636 | 643 |
637 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 644 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |