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_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 bool shouldDumpEditingCallbacks() const; | 128 bool shouldDumpEditingCallbacks() const; |
129 bool shouldDumpFrameLoadCallbacks() const; | 129 bool shouldDumpFrameLoadCallbacks() const; |
130 bool shouldDumpPingLoaderCallbacks() const; | 130 bool shouldDumpPingLoaderCallbacks() const; |
131 bool shouldDumpUserGestureInFrameLoadCallbacks() const; | 131 bool shouldDumpUserGestureInFrameLoadCallbacks() const; |
132 bool shouldDumpTitleChanges() const; | 132 bool shouldDumpTitleChanges() const; |
133 bool shouldDumpIconChanges() const; | 133 bool shouldDumpIconChanges() const; |
134 bool shouldDumpCreateView() const; | 134 bool shouldDumpCreateView() const; |
135 bool canOpenWindows() const; | 135 bool canOpenWindows() const; |
136 bool shouldDumpResourceLoadCallbacks() const; | 136 bool shouldDumpResourceLoadCallbacks() const; |
137 bool shouldDumpResourceResponseMIMETypes() const; | 137 bool shouldDumpResourceResponseMIMETypes() const; |
138 bool shouldDumpStatusCallbacks() const; | |
139 bool shouldDumpSpellCheckCallbacks() const; | 138 bool shouldDumpSpellCheckCallbacks() const; |
140 bool shouldWaitUntilExternalURLLoad() const; | 139 bool shouldWaitUntilExternalURLLoad() const; |
141 const std::set<std::string>* httpHeadersToClear() const; | 140 const std::set<std::string>* httpHeadersToClear() const; |
142 bool is_web_platform_tests_mode() const { | 141 bool is_web_platform_tests_mode() const { |
143 return is_web_platform_tests_mode_; | 142 return is_web_platform_tests_mode_; |
144 } | 143 } |
145 void set_is_web_platform_tests_mode() { is_web_platform_tests_mode_ = true; } | 144 void set_is_web_platform_tests_mode() { is_web_platform_tests_mode_ = true; } |
146 | 145 |
147 // To be called when |frame| starts loading - TestRunner will check if | 146 // To be called when |frame| starts loading - TestRunner will check if |
148 // there is currently no top-loading-frame being tracked and if so, then it | 147 // there is currently no top-loading-frame being tracked and if so, then it |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 void SetAutoplayAllowed(bool allowed); | 419 void SetAutoplayAllowed(bool allowed); |
421 void DumpPermissionClientCallbacks(); | 420 void DumpPermissionClientCallbacks(); |
422 | 421 |
423 // Sets up a mock DocumentSubresourceFilter to disallow subsequent subresource | 422 // Sets up a mock DocumentSubresourceFilter to disallow subsequent subresource |
424 // loads within the current document with the given path |suffixes|. The | 423 // loads within the current document with the given path |suffixes|. The |
425 // filter is created and injected even if |suffixes| is empty. If |suffixes| | 424 // filter is created and injected even if |suffixes| is empty. If |suffixes| |
426 // contains the empty string, all subresource loads will be disallowed. | 425 // contains the empty string, all subresource loads will be disallowed. |
427 void SetDisallowedSubresourcePathSuffixes( | 426 void SetDisallowedSubresourcePathSuffixes( |
428 const std::vector<std::string>& suffixes); | 427 const std::vector<std::string>& suffixes); |
429 | 428 |
430 // This function sets a flag that tells the test_shell to dump all calls | |
431 // to window.status(). | |
432 // It takes no arguments, and ignores any that may be present. | |
433 void DumpWindowStatusChanges(); | |
434 | |
435 // This function sets a flag that tells the test_shell to dump all | 429 // This function sets a flag that tells the test_shell to dump all |
436 // the lines of descriptive text about spellcheck execution. | 430 // the lines of descriptive text about spellcheck execution. |
437 void DumpSpellCheckCallbacks(); | 431 void DumpSpellCheckCallbacks(); |
438 | 432 |
439 // This function sets a flag that tells the test_shell to print out a text | 433 // This function sets a flag that tells the test_shell to print out a text |
440 // representation of the back/forward list. It ignores all arguments. | 434 // representation of the back/forward list. It ignores all arguments. |
441 void DumpBackForwardList(); | 435 void DumpBackForwardList(); |
442 | 436 |
443 void DumpSelectionRect(); | 437 void DumpSelectionRect(); |
444 | 438 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 bool disable_v8_cache_ = false; | 659 bool disable_v8_cache_ = false; |
666 | 660 |
667 base::WeakPtrFactory<TestRunner> weak_factory_; | 661 base::WeakPtrFactory<TestRunner> weak_factory_; |
668 | 662 |
669 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 663 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
670 }; | 664 }; |
671 | 665 |
672 } // namespace test_runner | 666 } // namespace test_runner |
673 | 667 |
674 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ | 668 #endif // CONTENT_SHELL_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |