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

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

Issue 2059543002: bluetooth: Move FactoryWrapper to device and expose a function for testing in chooser controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Remove code from client interface Created 4 years, 5 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 (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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 // Set the device scale factor and force the compositor to resize. 113 // Set the device scale factor and force the compositor to resize.
114 void SetDeviceScaleFactor(RenderView* render_view, float factor); 114 void SetDeviceScaleFactor(RenderView* render_view, float factor);
115 115
116 // Get the window to viewport scale. 116 // Get the window to viewport scale.
117 float GetWindowToViewportScale(RenderView* render_view); 117 float GetWindowToViewportScale(RenderView* render_view);
118 118
119 // Set the device color profile associated with the profile |name|. 119 // Set the device color profile associated with the profile |name|.
120 void SetDeviceColorProfile(RenderView* render_view, const std::string& name); 120 void SetDeviceColorProfile(RenderView* render_view, const std::string& name);
121 121
122 // Change the bluetooth test adapter while running a layout test. 122 // Sets the scan duration to 0.
123 void SetBluetoothAdapter(int render_process_id, 123 void SetTestBluetoothScanDuration();
124 scoped_refptr<device::BluetoothAdapter> adapter);
125 124
126 // Enables or disables synchronous resize mode. When enabled, all window-sizing 125 // Enables or disables synchronous resize mode. When enabled, all window-sizing
127 // machinery is short-circuited inside the renderer. This mode is necessary for 126 // machinery is short-circuited inside the renderer. This mode is necessary for
128 // some tests that were written before browsers had multi-process architecture 127 // some tests that were written before browsers had multi-process architecture
129 // and rely on window resizes to happen synchronously. 128 // and rely on window resizes to happen synchronously.
130 // See http://crbug.com/309760 for details. 129 // See http://crbug.com/309760 for details.
131 void UseSynchronousResizeMode(RenderView* render_view, bool enable); 130 void UseSynchronousResizeMode(RenderView* render_view, bool enable);
132 131
133 // Control auto resize mode. 132 // Control auto resize mode.
134 void EnableAutoResizeMode(RenderView* render_view, 133 void EnableAutoResizeMode(RenderView* render_view,
135 const blink::WebSize& min_size, 134 const blink::WebSize& min_size,
136 const blink::WebSize& max_size); 135 const blink::WebSize& max_size);
137 void DisableAutoResizeMode(RenderView* render_view, 136 void DisableAutoResizeMode(RenderView* render_view,
138 const blink::WebSize& new_size); 137 const blink::WebSize& new_size);
139 138
140 // Provides a text dump of the contents of the given page state. 139 // Provides a text dump of the contents of the given page state.
141 std::string DumpBackForwardList(std::vector<PageState>& page_state, 140 std::string DumpBackForwardList(std::vector<PageState>& page_state,
142 size_t current_index); 141 size_t current_index);
143 142
144 // Run all pending idle tasks immediately, and then invoke callback. 143 // Run all pending idle tasks immediately, and then invoke callback.
145 void SchedulerRunIdleTasks(const base::Closure& callback); 144 void SchedulerRunIdleTasks(const base::Closure& callback);
146 145
147 } // namespace content 146 } // namespace content
148 147
149 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 148 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/shell/browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698