Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: components/test_runner/test_runner.h

Issue 2013203003: content_shell: Update absolute path rewriting logic again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_; } 135 bool is_web_platform_tests_mode() const {
136 void set_did_request_after_reset() { did_request_after_reset_ = true; } 136 return is_web_platform_tests_mode_;
137 }
138 void set_is_web_platform_tests_mode() { is_web_platform_tests_mode_ = true; }
137 139
138 // To be called when |frame| starts loading - TestRunner will check if 140 // To be called when |frame| starts loading - TestRunner will check if
139 // there is currently no top-loading-frame being tracked and if so, then it 141 // there is currently no top-loading-frame being tracked and if so, then it
140 // will return true and start tracking |frame| as the top-loading-frame. 142 // will return true and start tracking |frame| as the top-loading-frame.
141 bool tryToSetTopLoadingFrame(blink::WebFrame* frame); 143 bool tryToSetTopLoadingFrame(blink::WebFrame* frame);
142 144
143 // To be called when |frame| finishes loading - TestRunner will check if 145 // To be called when |frame| finishes loading - TestRunner will check if
144 // |frame| is currently tracked as the top-loading-frame, and if yes, then it 146 // |frame| is currently tracked as the top-loading-frame, and if yes, then it
145 // will return true, stop top-loading-frame tracking, and potentially finish 147 // will return true, stop top-loading-frame tracking, and potentially finish
146 // the test (unless testRunner.waitUntilDone() was called and/or there are 148 // the test (unless testRunner.waitUntilDone() was called and/or there are
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 // Captured drag image. 634 // Captured drag image.
633 blink::WebImage drag_image_; 635 blink::WebImage drag_image_;
634 636
635 // View that was focused by a previous call to TestRunner::SetFocus method. 637 // View that was focused by a previous call to TestRunner::SetFocus method.
636 // Note - this can be a dangling pointer to an already destroyed WebView (this 638 // Note - this can be a dangling pointer to an already destroyed WebView (this
637 // is ok, because this is taken care of in WebTestDelegate::SetFocus). 639 // is ok, because this is taken care of in WebTestDelegate::SetFocus).
638 blink::WebView* previously_focused_view_; 640 blink::WebView* previously_focused_view_;
639 641
640 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; 642 std::set<blink::WebWidget*> widgets_with_scheduled_animations_;
641 643
642 // True if we requested any resource after Reset(). 644 // True if we run a test in LayoutTests/imported/{csswg-test,wpt}/.
643 bool did_request_after_reset_; 645 bool is_web_platform_tests_mode_;
644 646
645 base::WeakPtrFactory<TestRunner> weak_factory_; 647 base::WeakPtrFactory<TestRunner> weak_factory_;
646 648
647 DISALLOW_COPY_AND_ASSIGN(TestRunner); 649 DISALLOW_COPY_AND_ASSIGN(TestRunner);
648 }; 650 };
649 651
650 } // namespace test_runner 652 } // namespace test_runner
651 653
652 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 654 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698