Chromium Code Reviews| Index: content/test/layouttest_support.cc |
| diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc |
| index 10f497ba6467828736364137ffea8e1434b58974..0e043045235b124f504464ed09e93867cbac44b8 100644 |
| --- a/content/test/layouttest_support.cc |
| +++ b/content/test/layouttest_support.cc |
| @@ -9,6 +9,7 @@ |
| #include "cc/blink/web_layer_impl.h" |
| #include "content/browser/renderer_host/render_widget_host_impl.h" |
| #include "content/child/bluetooth/web_bluetooth_impl.h" |
| +#include "content/child/geofencing/web_geofencing_provider_impl.h" |
| #include "content/common/gpu/image_transport_surface.h" |
| #include "content/public/common/page_state.h" |
| #include "content/public/renderer/renderer_gamepad_provider.h" |
| @@ -318,6 +319,24 @@ void SetBluetoothMockDataSetForTesting(const std::string& name) { |
| ->SetBluetoothMockDataSetForTesting(name); |
| } |
| +void SetGeofencingMockProvider(bool service_available) { |
| + static_cast<WebGeofencingProviderImpl*>( |
| + RenderThreadImpl::current()->blink_platform_impl()->geofencingProvider()) |
| + ->SetMockProvider(service_available); |
|
pfeldman
2014/12/10 08:59:52
wrong indentation.
Marijn Kruisselbrink
2014/12/10 18:13:37
this was the indentation clang-format preferred, s
|
| +} |
| + |
| +void ClearGeofencingMockProvider() { |
| + static_cast<WebGeofencingProviderImpl*>( |
| + RenderThreadImpl::current()->blink_platform_impl()->geofencingProvider()) |
| + ->ClearMockProvider(); |
| +} |
| + |
| +void SetGeofencingMockPosition(double latitude, double longitude) { |
| + static_cast<WebGeofencingProviderImpl*>( |
| + RenderThreadImpl::current()->blink_platform_impl()->geofencingProvider()) |
| + ->SetMockPosition(latitude, longitude); |
| +} |
| + |
| void UseSynchronousResizeMode(RenderView* render_view, bool enable) { |
| static_cast<RenderViewImpl*>(render_view)-> |
| UseSynchronousResizeModeForTesting(enable); |