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

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

Issue 2211283004: Drop test-only WebFrameClient params/functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 4 years, 4 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // will return true, stop top-loading-frame tracking, and potentially finish 147 // will return true, stop top-loading-frame tracking, and potentially finish
148 // the test (unless testRunner.waitUntilDone() was called and/or there are 148 // the test (unless testRunner.waitUntilDone() was called and/or there are
149 // pending load requests in WorkQueue). 149 // pending load requests in WorkQueue).
150 bool tryToClearTopLoadingFrame(blink::WebFrame*); 150 bool tryToClearTopLoadingFrame(blink::WebFrame*);
151 151
152 blink::WebFrame* topLoadingFrame() const; 152 blink::WebFrame* topLoadingFrame() const;
153 void policyDelegateDone(); 153 void policyDelegateDone();
154 bool policyDelegateEnabled() const; 154 bool policyDelegateEnabled() const;
155 bool policyDelegateIsPermissive() const; 155 bool policyDelegateIsPermissive() const;
156 bool policyDelegateShouldNotifyDone() const; 156 bool policyDelegateShouldNotifyDone() const;
157 bool shouldDumpResourcePriorities() const;
158 void setToolTipText(const blink::WebString&); 157 void setToolTipText(const blink::WebString&);
159 void setDragImage(const blink::WebImage& drag_image); 158 void setDragImage(const blink::WebImage& drag_image);
160 bool shouldDumpNavigationPolicy() const; 159 bool shouldDumpNavigationPolicy() const;
161 160
162 bool midiAccessorResult(); 161 bool midiAccessorResult();
163 162
164 // Methods used by MockColorChooser: 163 // Methods used by MockColorChooser:
165 void DidOpenChooser(); 164 void DidOpenChooser();
166 void DidCloseChooser(); 165 void DidCloseChooser();
167 166
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 void SetPrinting(); 434 void SetPrinting();
436 435
437 // Clears the state from SetPrinting(). 436 // Clears the state from SetPrinting().
438 void ClearPrinting(); 437 void ClearPrinting();
439 438
440 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool value); 439 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool value);
441 440
442 // Causes WillSendRequest to clear certain headers. 441 // Causes WillSendRequest to clear certain headers.
443 void SetWillSendRequestClearHeader(const std::string& header); 442 void SetWillSendRequestClearHeader(const std::string& header);
444 443
445 // This function sets a flag that tells the test_shell to dump a descriptive
446 // line for each resource load's priority and any time that priority
447 // changes. It takes no arguments, and ignores any that may be present.
448 void DumpResourceRequestPriorities();
449
450 // Sets a flag to enable the mock theme. 444 // Sets a flag to enable the mock theme.
451 void SetUseMockTheme(bool use); 445 void SetUseMockTheme(bool use);
452 446
453 // Sets a flag that causes the test to be marked as completed when the 447 // Sets a flag that causes the test to be marked as completed when the
454 // WebFrameClient receives a loadURLExternally() call. 448 // WebFrameClient receives a loadURLExternally() call.
455 void WaitUntilExternalURLLoad(); 449 void WaitUntilExternalURLLoad();
456 450
457 // This function sets a flag to dump the drag image when the next drag&drop is 451 // This function sets a flag to dump the drag image when the next drag&drop is
458 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel 452 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel
459 // results will be the drag image instead of a snapshot of the page. 453 // results will be the drag image instead of a snapshot of the page.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 bool is_web_platform_tests_mode_; 631 bool is_web_platform_tests_mode_;
638 632
639 base::WeakPtrFactory<TestRunner> weak_factory_; 633 base::WeakPtrFactory<TestRunner> weak_factory_;
640 634
641 DISALLOW_COPY_AND_ASSIGN(TestRunner); 635 DISALLOW_COPY_AND_ASSIGN(TestRunner);
642 }; 636 };
643 637
644 } // namespace test_runner 638 } // namespace test_runner
645 639
646 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 640 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698