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

Side by Side Diff: ash/system/media_security/multi_profile_media_tray_item_unittest.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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/system/media_security/multi_profile_media_tray_item.h" 5 #include "ash/system/media_security/multi_profile_media_tray_item.h"
6 6
7 #include "ash/ash_view_ids.h" 7 #include "ash/ash_view_ids.h"
8 #include "ash/media_controller.h" 8 #include "ash/media_controller.h"
9 #include "ash/public/interfaces/media.mojom.h" 9 #include "ash/public/interfaces/media.mojom.h"
10 #include "ash/session/session_controller.h" 10 #include "ash/session/session_controller.h"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "ash/system/status_area_widget.h" 12 #include "ash/system/status_area_widget.h"
13 #include "ash/system/tray/system_tray.h" 13 #include "ash/system/tray/system_tray.h"
14 #include "ash/system/tray/system_tray_bubble.h" 14 #include "ash/system/tray/system_tray_bubble.h"
15 #include "ash/system/tray/tray_item_view.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 "ash/wm_shell.h"
21 #include "ui/views/bubble/tray_bubble_view.h" 20 #include "ui/views/bubble/tray_bubble_view.h"
22 21
23 namespace ash { 22 namespace ash {
24 23
25 class MultiProfileMediaTrayItemTest : public test::AshTestBase { 24 class MultiProfileMediaTrayItemTest : public test::AshTestBase {
26 public: 25 public:
27 MultiProfileMediaTrayItemTest() {} 26 MultiProfileMediaTrayItemTest() {}
28 ~MultiProfileMediaTrayItemTest() override {} 27 ~MultiProfileMediaTrayItemTest() override {}
29 28
30 void SetMediaCaptureState(mojom::MediaCaptureState state) { 29 void SetMediaCaptureState(mojom::MediaCaptureState state) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 SetMediaCaptureState(mojom::MediaCaptureState::AUDIO_VIDEO); 66 SetMediaCaptureState(mojom::MediaCaptureState::AUDIO_VIDEO);
68 EXPECT_TRUE(tray_view->visible()); 67 EXPECT_TRUE(tray_view->visible());
69 EXPECT_TRUE(in_user_view->visible()); 68 EXPECT_TRUE(in_user_view->visible());
70 69
71 SetMediaCaptureState(mojom::MediaCaptureState::NONE); 70 SetMediaCaptureState(mojom::MediaCaptureState::NONE);
72 EXPECT_FALSE(tray_view->visible()); 71 EXPECT_FALSE(tray_view->visible());
73 EXPECT_FALSE(in_user_view->visible()); 72 EXPECT_FALSE(in_user_view->visible());
74 } 73 }
75 74
76 } // namespace ash 75 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698