OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/media_security/multi_profile_media_tray_ite
m.h" | 5 #include "ash/system/media_security/multi_profile_media_tray_item.h" |
6 | 6 |
7 #include "ash/common/ash_view_ids.h" | 7 #include "ash/common/ash_view_ids.h" |
8 #include "ash/common/media_controller.h" | 8 #include "ash/common/media_controller.h" |
9 #include "ash/common/system/status_area_widget.h" | |
10 #include "ash/common/system/tray/system_tray.h" | |
11 #include "ash/common/system/tray/system_tray_bubble.h" | |
12 #include "ash/common/system/tray/tray_item_view.h" | |
13 #include "ash/common/test/test_session_state_delegate.h" | 9 #include "ash/common/test/test_session_state_delegate.h" |
14 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
15 #include "ash/public/interfaces/media.mojom.h" | 11 #include "ash/public/interfaces/media.mojom.h" |
| 12 #include "ash/system/status_area_widget.h" |
| 13 #include "ash/system/tray/system_tray.h" |
| 14 #include "ash/system/tray/system_tray_bubble.h" |
| 15 #include "ash/system/tray/tray_item_view.h" |
16 #include "ash/test/ash_test_base.h" | 16 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/ash_test_helper.h" | 17 #include "ash/test/ash_test_helper.h" |
18 #include "ash/test/status_area_widget_test_helper.h" | 18 #include "ash/test/status_area_widget_test_helper.h" |
19 #include "ash/test/test_shell_delegate.h" | 19 #include "ash/test/test_shell_delegate.h" |
20 #include "ui/views/bubble/tray_bubble_view.h" | 20 #include "ui/views/bubble/tray_bubble_view.h" |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 | 23 |
24 class MultiProfileMediaTrayItemTest : public test::AshTestBase { | 24 class MultiProfileMediaTrayItemTest : public test::AshTestBase { |
25 public: | 25 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 SetMediaCaptureState(mojom::MediaCaptureState::AUDIO_VIDEO); | 69 SetMediaCaptureState(mojom::MediaCaptureState::AUDIO_VIDEO); |
70 EXPECT_TRUE(tray_view->visible()); | 70 EXPECT_TRUE(tray_view->visible()); |
71 EXPECT_TRUE(in_user_view->visible()); | 71 EXPECT_TRUE(in_user_view->visible()); |
72 | 72 |
73 SetMediaCaptureState(mojom::MediaCaptureState::NONE); | 73 SetMediaCaptureState(mojom::MediaCaptureState::NONE); |
74 EXPECT_FALSE(tray_view->visible()); | 74 EXPECT_FALSE(tray_view->visible()); |
75 EXPECT_FALSE(in_user_view->visible()); | 75 EXPECT_FALSE(in_user_view->visible()); |
76 } | 76 } |
77 | 77 |
78 } // namespace ash | 78 } // namespace ash |
OLD | NEW |