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

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

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/common/ash_view_ids.h" 7 #include "ash/ash_view_ids.h"
8 #include "ash/common/media_controller.h" 8 #include "ash/media_controller.h"
9 #include "ash/common/test/test_session_state_delegate.h"
10 #include "ash/common/wm_shell.h"
11 #include "ash/public/interfaces/media.mojom.h" 9 #include "ash/public/interfaces/media.mojom.h"
12 #include "ash/system/status_area_widget.h" 10 #include "ash/system/status_area_widget.h"
13 #include "ash/system/tray/system_tray.h" 11 #include "ash/system/tray/system_tray.h"
14 #include "ash/system/tray/system_tray_bubble.h" 12 #include "ash/system/tray/system_tray_bubble.h"
15 #include "ash/system/tray/tray_item_view.h" 13 #include "ash/system/tray/tray_item_view.h"
16 #include "ash/test/ash_test_base.h" 14 #include "ash/test/ash_test_base.h"
17 #include "ash/test/ash_test_helper.h" 15 #include "ash/test/ash_test_helper.h"
18 #include "ash/test/status_area_widget_test_helper.h" 16 #include "ash/test/status_area_widget_test_helper.h"
17 #include "ash/test/test_session_state_delegate.h"
19 #include "ash/test/test_shell_delegate.h" 18 #include "ash/test/test_shell_delegate.h"
19 #include "ash/wm_shell.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:
26 MultiProfileMediaTrayItemTest() {} 26 MultiProfileMediaTrayItemTest() {}
27 ~MultiProfileMediaTrayItemTest() override {} 27 ~MultiProfileMediaTrayItemTest() override {}
28 28
29 void SetMediaCaptureState(mojom::MediaCaptureState state) { 29 void SetMediaCaptureState(mojom::MediaCaptureState state) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ash/system/media_security/multi_profile_media_tray_item.cc ('k') | ash/system/network/network_state_list_detailed_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698