| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/test/ash_test_base.h" | 7 #include "ash/test/ash_test_base.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 media::ScopedAudioManagerPtr audio_manager_; | 51 media::ScopedAudioManagerPtr audio_manager_; |
| 52 ScopedUserManagerEnabler user_manager_enabler_; | 52 ScopedUserManagerEnabler user_manager_enabler_; |
| 53 ScopedCrosSettingsTestHelper settings_helper_; | 53 ScopedCrosSettingsTestHelper settings_helper_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOSTest); | 55 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOSTest); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 // This test is times out flakily: http://crbug.com/639938 |
| 58 // Test that checking bluetooth status early on does not cause a crash. | 59 // Test that checking bluetooth status early on does not cause a crash. |
| 59 TEST_F(SystemTrayDelegateChromeOSTest, BluetoothStatus) { | 60 TEST_F(SystemTrayDelegateChromeOSTest, DISABLED_BluetoothStatus) { |
| 60 SystemTrayDelegateChromeOS delegate; | 61 SystemTrayDelegateChromeOS delegate; |
| 61 EXPECT_FALSE(delegate.GetBluetoothAvailable()); | 62 EXPECT_FALSE(delegate.GetBluetoothAvailable()); |
| 62 EXPECT_FALSE(delegate.GetBluetoothEnabled()); | 63 EXPECT_FALSE(delegate.GetBluetoothEnabled()); |
| 63 EXPECT_FALSE(delegate.IsBluetoothDiscovering()); | 64 EXPECT_FALSE(delegate.IsBluetoothDiscovering()); |
| 64 } | 65 } |
| 65 | 66 |
| 66 } // namespace chromeos | 67 } // namespace chromeos |
| OLD | NEW |