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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 1832673002: Add testRunner.runIdleTasks() to force idle tasks to run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 4 years, 8 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 | « content/content_tests.gypi ('k') | content/shell/renderer/layout_test/blink_test_runner.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void EnableAutoResizeMode(RenderView* render_view, 136 void EnableAutoResizeMode(RenderView* render_view,
137 const blink::WebSize& min_size, 137 const blink::WebSize& min_size,
138 const blink::WebSize& max_size); 138 const blink::WebSize& max_size);
139 void DisableAutoResizeMode(RenderView* render_view, 139 void DisableAutoResizeMode(RenderView* render_view,
140 const blink::WebSize& new_size); 140 const blink::WebSize& new_size);
141 141
142 // Provides a text dump of the contents of the given page state. 142 // Provides a text dump of the contents of the given page state.
143 std::string DumpBackForwardList(std::vector<PageState>& page_state, 143 std::string DumpBackForwardList(std::vector<PageState>& page_state,
144 size_t current_index); 144 size_t current_index);
145 145
146 // Run all pending idle tasks immediately, and then invoke callback.
147 void SchedulerRunIdleTasks(const base::Closure& callback);
148
146 } // namespace content 149 } // namespace content
147 150
148 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 151 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/shell/renderer/layout_test/blink_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698