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

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: Rebase Created 4 years, 3 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // will return true, stop top-loading-frame tracking, and potentially finish 149 // will return true, stop top-loading-frame tracking, and potentially finish
150 // the test (unless testRunner.waitUntilDone() was called and/or there are 150 // the test (unless testRunner.waitUntilDone() was called and/or there are
151 // pending load requests in WorkQueue). 151 // pending load requests in WorkQueue).
152 bool tryToClearTopLoadingFrame(blink::WebFrame*); 152 bool tryToClearTopLoadingFrame(blink::WebFrame*);
153 153
154 blink::WebFrame* topLoadingFrame() const; 154 blink::WebFrame* topLoadingFrame() const;
155 void policyDelegateDone(); 155 void policyDelegateDone();
156 bool policyDelegateEnabled() const; 156 bool policyDelegateEnabled() const;
157 bool policyDelegateIsPermissive() const; 157 bool policyDelegateIsPermissive() const;
158 bool policyDelegateShouldNotifyDone() const; 158 bool policyDelegateShouldNotifyDone() const;
159 bool shouldDumpResourcePriorities() const;
160 void setToolTipText(const blink::WebString&); 159 void setToolTipText(const blink::WebString&);
161 void setDragImage(const blink::WebImage& drag_image); 160 void setDragImage(const blink::WebImage& drag_image);
162 bool shouldDumpNavigationPolicy() const; 161 bool shouldDumpNavigationPolicy() const;
163 162
164 bool midiAccessorResult(); 163 bool midiAccessorResult();
165 164
166 // Methods used by MockColorChooser: 165 // Methods used by MockColorChooser:
167 void DidOpenChooser(); 166 void DidOpenChooser();
168 void DidCloseChooser(); 167 void DidCloseChooser();
169 168
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 void SetPrinting(); 436 void SetPrinting();
438 437
439 // Clears the state from SetPrinting(). 438 // Clears the state from SetPrinting().
440 void ClearPrinting(); 439 void ClearPrinting();
441 440
442 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool value); 441 void SetShouldStayOnPageAfterHandlingBeforeUnload(bool value);
443 442
444 // Causes WillSendRequest to clear certain headers. 443 // Causes WillSendRequest to clear certain headers.
445 void SetWillSendRequestClearHeader(const std::string& header); 444 void SetWillSendRequestClearHeader(const std::string& header);
446 445
447 // This function sets a flag that tells the test_shell to dump a descriptive
448 // line for each resource load's priority and any time that priority
449 // changes. It takes no arguments, and ignores any that may be present.
450 void DumpResourceRequestPriorities();
451
452 // Sets a flag to enable the mock theme. 446 // Sets a flag to enable the mock theme.
453 void SetUseMockTheme(bool use); 447 void SetUseMockTheme(bool use);
454 448
455 // Sets a flag that causes the test to be marked as completed when the 449 // Sets a flag that causes the test to be marked as completed when the
456 // WebFrameClient receives a loadURLExternally() call. 450 // WebFrameClient receives a loadURLExternally() call.
457 void WaitUntilExternalURLLoad(); 451 void WaitUntilExternalURLLoad();
458 452
459 // This function sets a flag to dump the drag image when the next drag&drop is 453 // This function sets a flag to dump the drag image when the next drag&drop is
460 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel 454 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel
461 // results will be the drag image instead of a snapshot of the page. 455 // results will be the drag image instead of a snapshot of the page.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 bool is_web_platform_tests_mode_; 639 bool is_web_platform_tests_mode_;
646 640
647 base::WeakPtrFactory<TestRunner> weak_factory_; 641 base::WeakPtrFactory<TestRunner> weak_factory_;
648 642
649 DISALLOW_COPY_AND_ASSIGN(TestRunner); 643 DISALLOW_COPY_AND_ASSIGN(TestRunner);
650 }; 644 };
651 645
652 } // namespace test_runner 646 } // namespace test_runner
653 647
654 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 648 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/layout_test_runtime_flags.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698