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 "ash/common/system/update/tray_update.h" | 5 #include "ash/common/system/update/tray_update.h" |
6 | 6 |
| 7 #include "ash/common/system/tray/system_tray.h" |
7 #include "ash/common/system/tray/system_tray_notifier.h" | 8 #include "ash/common/system/tray/system_tray_notifier.h" |
8 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
9 #include "ash/system/tray/system_tray.h" | |
10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
11 #include "ash/test/test_system_tray_delegate.h" | 11 #include "ash/test/test_system_tray_delegate.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 | 15 |
16 using TrayUpdateTest = test::AshTestBase; | 16 using TrayUpdateTest = test::AshTestBase; |
17 | 17 |
18 // Tests that the update icon becomes visible when an update becomes | 18 // Tests that the update icon becomes visible when an update becomes |
19 // available. | 19 // available. |
(...skipping 12 matching lines...) Expand all Loading... |
32 // Simulate an update. | 32 // Simulate an update. |
33 UpdateInfo info; | 33 UpdateInfo info; |
34 info.update_required = true; | 34 info.update_required = true; |
35 WmShell::Get()->system_tray_notifier()->NotifyUpdateRecommended(info); | 35 WmShell::Get()->system_tray_notifier()->NotifyUpdateRecommended(info); |
36 | 36 |
37 // Tray item is now visible. | 37 // Tray item is now visible. |
38 EXPECT_TRUE(tray_update->tray_view()->visible()); | 38 EXPECT_TRUE(tray_update->tray_view()->visible()); |
39 } | 39 } |
40 | 40 |
41 } // namespace ash | 41 } // namespace ash |
OLD | NEW |