Index: content/test/layouttest_support.cc |
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc |
index 0ae2b51f64c057de6a2306e285857f0272fc908a..731f9918672f08bd8b40fbd6026c1a453c974e14 100644 |
--- a/content/test/layouttest_support.cc |
+++ b/content/test/layouttest_support.cc |
@@ -7,9 +7,8 @@ |
#include "base/callback.h" |
#include "base/lazy_instance.h" |
#include "cc/blink/web_layer_impl.h" |
-#include "content/browser/bluetooth/bluetooth_dispatcher_host.h" |
-#include "content/browser/renderer_host/render_process_host_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" |
@@ -313,14 +312,11 @@ |
SetDeviceColorProfileForTesting(color_profile); |
} |
-void SetBluetoothAdapter(int render_process_id, const std::string& name) { |
- RenderProcessHostImpl* render_process_host_impl = |
- static_cast<RenderProcessHostImpl*>( |
- RenderProcessHost::FromID(render_process_id)); |
- |
- render_process_host_impl |
- ->GetBluetoothDispatcherHost() |
- ->SetBluetoothAdapterForTesting(name); |
+void SetBluetoothMockDataSetForTesting(const std::string& name) { |
+ RenderThreadImpl::current() |
+ ->blink_platform_impl() |
+ ->BluetoothImplForTesting() |
+ ->SetBluetoothMockDataSetForTesting(name); |
} |
void SetGeofencingMockProvider(bool service_available) { |