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

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

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mention unifying bug in a comment Created 6 years 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_common.gypi ('k') | content/shell/renderer/layout_test/webkit_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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Set the device scale factor and force the compositor to resize. 90 // Set the device scale factor and force the compositor to resize.
91 void SetDeviceScaleFactor(RenderView* render_view, float factor); 91 void SetDeviceScaleFactor(RenderView* render_view, float factor);
92 92
93 // Set the device color profile associated with the profile |name|. 93 // Set the device color profile associated with the profile |name|.
94 void SetDeviceColorProfile(RenderView* render_view, const std::string& name); 94 void SetDeviceColorProfile(RenderView* render_view, const std::string& name);
95 95
96 // Change the bluetooth test data while running a layout test. 96 // Change the bluetooth test data while running a layout test.
97 void SetBluetoothMockDataSetForTesting(const std::string& name); 97 void SetBluetoothMockDataSetForTesting(const std::string& name);
98 98
99 // Enables mock geofencing service while running a layout test.
100 // |service_available| indicates if the mock service should mock geofencing
101 // being available or not.
102 void SetGeofencingMockProvider(bool service_available);
103
104 // Disables mock geofencing service while running a layout test.
105 void ClearGeofencingMockProvider();
106
107 // Set the mock geofencing position while running a layout test.
108 void SetGeofencingMockPosition(double latitude, double longitude);
109
99 // Enables or disables synchronous resize mode. When enabled, all window-sizing 110 // Enables or disables synchronous resize mode. When enabled, all window-sizing
100 // machinery is short-circuited inside the renderer. This mode is necessary for 111 // machinery is short-circuited inside the renderer. This mode is necessary for
101 // some tests that were written before browsers had multi-process architecture 112 // some tests that were written before browsers had multi-process architecture
102 // and rely on window resizes to happen synchronously. 113 // and rely on window resizes to happen synchronously.
103 // See http://crbug.com/309760 for details. 114 // See http://crbug.com/309760 for details.
104 void UseSynchronousResizeMode(RenderView* render_view, bool enable); 115 void UseSynchronousResizeMode(RenderView* render_view, bool enable);
105 116
106 // Control auto resize mode. 117 // Control auto resize mode.
107 void EnableAutoResizeMode(RenderView* render_view, 118 void EnableAutoResizeMode(RenderView* render_view,
108 const blink::WebSize& min_size, 119 const blink::WebSize& min_size,
109 const blink::WebSize& max_size); 120 const blink::WebSize& max_size);
110 void DisableAutoResizeMode(RenderView* render_view, 121 void DisableAutoResizeMode(RenderView* render_view,
111 const blink::WebSize& new_size); 122 const blink::WebSize& new_size);
112 123
113 // Provides a text dump of the contents of the given page state. 124 // Provides a text dump of the contents of the given page state.
114 std::string DumpBackForwardList(std::vector<PageState>& page_state, 125 std::string DumpBackForwardList(std::vector<PageState>& page_state,
115 size_t current_index); 126 size_t current_index);
116 127
117 // Instantiates WebLayerImpl for TestPlugin. 128 // Instantiates WebLayerImpl for TestPlugin.
118 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer); 129 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer);
119 130
120 } // namespace content 131 } // namespace content
121 132
122 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 133 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/shell/renderer/layout_test/webkit_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698