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

Unified Diff: ash/common/system/chromeos/bluetooth/tray_bluetooth_helper_unittest.cc

Issue 2761993002: cros: Eliminate bluetooth methods from SystemTrayDelegate (Closed)
Patch Set: review comments Created 3 years, 9 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: ash/common/system/chromeos/bluetooth/tray_bluetooth_helper_unittest.cc
diff --git a/ash/common/system/chromeos/bluetooth/tray_bluetooth_helper_unittest.cc b/ash/common/system/chromeos/bluetooth/tray_bluetooth_helper_unittest.cc
index 77f4b662494429f5d73db9fd7fdb3b48a7c9cb87..01da12cd4285926a8450b2fb1255ec7a6863e428 100644
--- a/ash/common/system/chromeos/bluetooth/tray_bluetooth_helper_unittest.cc
+++ b/ash/common/system/chromeos/bluetooth/tray_bluetooth_helper_unittest.cc
@@ -31,35 +31,32 @@ TEST_F(TrayBluetoothHelperTest, Basics) {
TrayBluetoothHelper helper;
helper.Initialize();
RunAllPendingInMessageLoop();
- EXPECT_TRUE(helper.GetAvailable());
- EXPECT_FALSE(helper.GetEnabled());
- EXPECT_FALSE(helper.HasDiscoverySession());
- EXPECT_FALSE(helper.IsDiscovering());
+ EXPECT_TRUE(helper.GetBluetoothAvailable());
+ EXPECT_FALSE(helper.GetBluetoothEnabled());
+ EXPECT_FALSE(helper.HasBluetoothDiscoverySession());
std::vector<ash::BluetoothDeviceInfo> devices;
- helper.GetAvailableDevices(&devices);
+ helper.GetAvailableBluetoothDevices(&devices);
// The devices are fake in tests, so don't assume any particular number.
EXPECT_FALSE(devices.empty());
// Turn Bluetooth on.
- helper.ToggleEnabled();
+ helper.ToggleBluetoothEnabled();
RunAllPendingInMessageLoop();
- EXPECT_TRUE(helper.GetEnabled());
+ EXPECT_TRUE(helper.GetBluetoothEnabled());
- helper.StartDiscovering();
+ helper.StartBluetoothDiscovering();
RunAllPendingInMessageLoop();
- EXPECT_TRUE(helper.HasDiscoverySession());
- EXPECT_TRUE(helper.IsDiscovering());
+ EXPECT_TRUE(helper.HasBluetoothDiscoverySession());
- helper.StopDiscovering();
+ helper.StopBluetoothDiscovering();
RunAllPendingInMessageLoop();
- EXPECT_FALSE(helper.HasDiscoverySession());
- EXPECT_FALSE(helper.IsDiscovering());
+ EXPECT_FALSE(helper.HasBluetoothDiscoverySession());
// Turn Bluetooth off.
- helper.ToggleEnabled();
+ helper.ToggleBluetoothEnabled();
RunAllPendingInMessageLoop();
- EXPECT_FALSE(helper.GetEnabled());
+ EXPECT_FALSE(helper.GetBluetoothEnabled());
}
} // namespace
« no previous file with comments | « ash/common/system/chromeos/bluetooth/tray_bluetooth_helper.cc ('k') | ash/common/system/tray/default_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698