Chromium Code Reviews| Index: chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc |
| diff --git a/chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc b/chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc |
| index f57079ab841fdccbaecdd792569b1f723ad6fad0..935c863da67ff15ea71077c21eb46fe73d3a5dc7 100644 |
| --- a/chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc |
| +++ b/chrome/browser/ui/ash/system_tray_delegate_chromeos_browsertest_chromeos.cc |
| @@ -125,6 +125,14 @@ IN_PROC_BROWSER_TEST_F(SystemTrayDelegateChromeOSTest, |
| EXPECT_EQ(base::k24HourClock, GetHourType()); |
| } |
| +// Test that checking bluetooth status early on doesn't cause a crash. |
| +IN_PROC_BROWSER_TEST_F(SystemTrayDelegateChromeOSTest, BluetoothStatus) { |
|
James Cook
2016/07/20 15:23:14
drive-by question: Any particular reason you added
msw
2016/07/20 16:43:19
Woops, I meant to delete this; thanks for catching
|
| + SystemTrayDelegateChromeOS delegate; |
| + EXPECT_FALSE(delegate.GetBluetoothAvailable()); |
| + EXPECT_FALSE(delegate.GetBluetoothEnabled()); |
| + EXPECT_FALSE(delegate.IsBluetoothDiscovering()); |
| +} |
| + |
| // Makes sure that no notifications are shown when rotating the |
| // display on display settings URLs. |
| IN_PROC_BROWSER_TEST_F(DisplayNotificationsTest, |