Index: content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc |
diff --git a/content/browser/bluetooth/first_device_bluetooth_chooser.cc b/content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc |
similarity index 61% |
rename from content/browser/bluetooth/first_device_bluetooth_chooser.cc |
rename to content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc |
index 866d623d5d81b6640bd63bbb706c4f886b57d669..f4f4c30041770e167d4429d01090524b65b3ceda 100644 |
--- a/content/browser/bluetooth/first_device_bluetooth_chooser.cc |
+++ b/content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc |
@@ -2,19 +2,21 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/browser/bluetooth/first_device_bluetooth_chooser.h" |
+#include "content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.h" |
#include "base/logging.h" |
namespace content { |
-FirstDeviceBluetoothChooser::FirstDeviceBluetoothChooser( |
+LayoutTestFirstDeviceBluetoothChooser::LayoutTestFirstDeviceBluetoothChooser( |
const EventHandler& event_handler) |
: event_handler_(event_handler) {} |
-FirstDeviceBluetoothChooser::~FirstDeviceBluetoothChooser() {} |
+LayoutTestFirstDeviceBluetoothChooser:: |
+ ~LayoutTestFirstDeviceBluetoothChooser() {} |
-void FirstDeviceBluetoothChooser::SetAdapterPresence(AdapterPresence presence) { |
+void LayoutTestFirstDeviceBluetoothChooser::SetAdapterPresence( |
+ AdapterPresence presence) { |
switch (presence) { |
case AdapterPresence::ABSENT: |
case AdapterPresence::POWERED_OFF: |
@@ -27,13 +29,15 @@ void FirstDeviceBluetoothChooser::SetAdapterPresence(AdapterPresence presence) { |
} |
} |
-void FirstDeviceBluetoothChooser::ShowDiscoveryState(DiscoveryState state) { |
+void LayoutTestFirstDeviceBluetoothChooser::ShowDiscoveryState( |
+ DiscoveryState state) { |
switch (state) { |
case DiscoveryState::FAILED_TO_START: |
case DiscoveryState::IDLE: |
// Without a user-visible dialog, if discovery finishes without finding a |
// device, we'll never find one, so we should cancel. |
- VLOG(1) << "FirstDeviceBluetoothChooser found nothing before going idle."; |
+ VLOG(1) << "LayoutTestFirstDeviceBluetoothChooser found nothing before " |
+ "going idle."; |
event_handler_.Run(Event::CANCELLED, ""); |
break; |
case DiscoveryState::DISCOVERING: |
@@ -41,8 +45,9 @@ void FirstDeviceBluetoothChooser::ShowDiscoveryState(DiscoveryState state) { |
} |
} |
-void FirstDeviceBluetoothChooser::AddDevice(const std::string& deviceId, |
- const base::string16& deviceName) { |
+void LayoutTestFirstDeviceBluetoothChooser::AddDevice( |
+ const std::string& deviceId, |
+ const base::string16& deviceName) { |
event_handler_.Run(Event::SELECTED, deviceId); |
} |