| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 bool shouldDumpTitleChanges() const; | 125 bool shouldDumpTitleChanges() const; |
| 126 bool shouldDumpIconChanges() const; | 126 bool shouldDumpIconChanges() const; |
| 127 bool shouldDumpCreateView() const; | 127 bool shouldDumpCreateView() const; |
| 128 bool canOpenWindows() const; | 128 bool canOpenWindows() const; |
| 129 bool shouldDumpResourceLoadCallbacks() const; | 129 bool shouldDumpResourceLoadCallbacks() const; |
| 130 bool shouldDumpResourceResponseMIMETypes() const; | 130 bool shouldDumpResourceResponseMIMETypes() const; |
| 131 bool shouldDumpStatusCallbacks() const; | 131 bool shouldDumpStatusCallbacks() const; |
| 132 bool shouldDumpSpellCheckCallbacks() const; | 132 bool shouldDumpSpellCheckCallbacks() const; |
| 133 bool shouldWaitUntilExternalURLLoad() const; | 133 bool shouldWaitUntilExternalURLLoad() const; |
| 134 const std::set<std::string>* httpHeadersToClear() const; | 134 const std::set<std::string>* httpHeadersToClear() const; |
| 135 bool did_request_after_reset() const { return did_request_after_reset_; } |
| 136 void set_did_request_after_reset() { did_request_after_reset_ = true; } |
| 135 | 137 |
| 136 // To be called when |frame| starts loading - TestRunner will check if | 138 // To be called when |frame| starts loading - TestRunner will check if |
| 137 // there is currently no top-loading-frame being tracked and if so, then it | 139 // there is currently no top-loading-frame being tracked and if so, then it |
| 138 // will return true and start tracking |frame| as the top-loading-frame. | 140 // will return true and start tracking |frame| as the top-loading-frame. |
| 139 bool tryToSetTopLoadingFrame(blink::WebFrame* frame); | 141 bool tryToSetTopLoadingFrame(blink::WebFrame* frame); |
| 140 | 142 |
| 141 // To be called when |frame| finishes loading - TestRunner will check if | 143 // To be called when |frame| finishes loading - TestRunner will check if |
| 142 // |frame| is currently tracked as the top-loading-frame, and if yes, then it | 144 // |frame| is currently tracked as the top-loading-frame, and if yes, then it |
| 143 // will return true, stop top-loading-frame tracking, and potentially finish | 145 // will return true, stop top-loading-frame tracking, and potentially finish |
| 144 // the test (unless testRunner.waitUntilDone() was called and/or there are | 146 // the test (unless testRunner.waitUntilDone() was called and/or there are |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 // Captured drag image. | 632 // Captured drag image. |
| 631 blink::WebImage drag_image_; | 633 blink::WebImage drag_image_; |
| 632 | 634 |
| 633 // View that was focused by a previous call to TestRunner::SetFocus method. | 635 // View that was focused by a previous call to TestRunner::SetFocus method. |
| 634 // Note - this can be a dangling pointer to an already destroyed WebView (this | 636 // Note - this can be a dangling pointer to an already destroyed WebView (this |
| 635 // is ok, because this is taken care of in WebTestDelegate::SetFocus). | 637 // is ok, because this is taken care of in WebTestDelegate::SetFocus). |
| 636 blink::WebView* previously_focused_view_; | 638 blink::WebView* previously_focused_view_; |
| 637 | 639 |
| 638 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; | 640 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; |
| 639 | 641 |
| 642 // True if we requested any resource after Reset(). |
| 643 bool did_request_after_reset_; |
| 644 |
| 640 base::WeakPtrFactory<TestRunner> weak_factory_; | 645 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 641 | 646 |
| 642 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 647 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 643 }; | 648 }; |
| 644 | 649 |
| 645 } // namespace test_runner | 650 } // namespace test_runner |
| 646 | 651 |
| 647 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 652 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |