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

Unified Diff: content/public/test/layouttest_support.h

Issue 1132943002: bluetooth: Move mock creation out of BluetoothDispatcherHost to LayoutTestBluetoothAdapterProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-testing-layout-tests
Patch Set: Update documentation. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/layouttest_support.h
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h
index c8ec1e5d86ad69a13fd41fd1f31464e150e2afd1..0d7cfa9e05f282f1d19cb474ad31f780c190d062 100644
--- a/content/public/test/layouttest_support.h
+++ b/content/public/test/layouttest_support.h
@@ -26,6 +26,10 @@ class WebView;
class WebURLResponse;
}
+namespace device {
+class BluetoothAdapter;
+}
+
namespace content {
class PageState;
@@ -94,7 +98,8 @@ void SetDeviceScaleFactor(RenderView* render_view, float factor);
void SetDeviceColorProfile(RenderView* render_view, const std::string& name);
// Change the bluetooth test adapter while running a layout test.
-void SetBluetoothAdapter(int render_process_id, const std::string& name);
+void SetBluetoothAdapter(int render_process_id,
+ scoped_refptr<device::BluetoothAdapter> adapter);
// Enables mock geofencing service while running a layout test.
// |service_available| indicates if the mock service should mock geofencing

Powered by Google App Engine
This is Rietveld 408576698