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

Unified Diff: content/test/layouttest_support.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/browser/layout_test/layout_test_content_browser_client.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index cf56a43f133ba05856ccf1b10e5ef402fa5784e6..55d825da7a882cf9ce20b63140eb29bc53607221 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -17,7 +17,7 @@
#include "components/test_runner/test_common.h"
#include "components/test_runner/web_frame_test_proxy.h"
#include "components/test_runner/web_test_proxy.h"
-#include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h"
+#include "content/browser/bluetooth/bluetooth_device_chooser_controller.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/common/gpu/client/context_provider_command_buffer.h"
@@ -34,7 +34,6 @@
#include "content/renderer/render_view_impl.h"
#include "content/renderer/renderer_blink_platform_impl.h"
#include "content/shell/common/shell_switches.h"
-#include "device/bluetooth/bluetooth_adapter.h"
#include "gpu/ipc/service/image_transport_surface.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/platform/WebGamepads.h"
@@ -409,14 +408,8 @@ void SetDeviceColorProfile(RenderView* render_view, const std::string& name) {
render_view->GetWidget()->SetDeviceColorProfileForTesting(color_profile);
}
-void SetBluetoothAdapter(int render_process_id,
- scoped_refptr<device::BluetoothAdapter> adapter) {
- RenderProcessHostImpl* render_process_host_impl =
- static_cast<RenderProcessHostImpl*>(
- RenderProcessHost::FromID(render_process_id));
-
- render_process_host_impl->GetBluetoothAdapterFactoryWrapper()
- ->SetBluetoothAdapterForTesting(std::move(adapter));
+void SetTestBluetoothScanDuration() {
+ BluetoothDeviceChooserController::SetTestScanDurationForTesting();
}
void UseSynchronousResizeMode(RenderView* render_view, bool enable) {
« no previous file with comments | « content/shell/browser/layout_test/layout_test_content_browser_client.cc ('k') | device/bluetooth/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698