| 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/system/chromeos/media_security/multi_profile_media_tray_item.h" | 5 #include "ash/system/chromeos/media_security/multi_profile_media_tray_item.h" |
| 6 | 6 |
| 7 #include "ash/ash_view_ids.h" | 7 #include "ash/common/ash_view_ids.h" |
| 8 #include "ash/common/system/tray/system_tray_bubble.h" | 8 #include "ash/common/system/tray/system_tray_bubble.h" |
| 9 #include "ash/common/system/tray/tray_item_view.h" | 9 #include "ash/common/system/tray/tray_item_view.h" |
| 10 #include "ash/system/status_area_widget.h" | 10 #include "ash/system/status_area_widget.h" |
| 11 #include "ash/system/tray/system_tray.h" | 11 #include "ash/system/tray/system_tray.h" |
| 12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
| 13 #include "ash/test/ash_test_helper.h" | 13 #include "ash/test/ash_test_helper.h" |
| 14 #include "ash/test/status_area_widget_test_helper.h" | 14 #include "ash/test/status_area_widget_test_helper.h" |
| 15 #include "ash/test/test_session_state_delegate.h" | 15 #include "ash/test/test_session_state_delegate.h" |
| 16 #include "ash/test/test_shell_delegate.h" | 16 #include "ash/test/test_shell_delegate.h" |
| 17 #include "ui/views/bubble/tray_bubble_view.h" | 17 #include "ui/views/bubble/tray_bubble_view.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 shell_delegate->SetMediaCaptureState(MEDIA_CAPTURE_AUDIO_VIDEO); | 49 shell_delegate->SetMediaCaptureState(MEDIA_CAPTURE_AUDIO_VIDEO); |
| 50 EXPECT_TRUE(tray_view->visible()); | 50 EXPECT_TRUE(tray_view->visible()); |
| 51 EXPECT_TRUE(in_user_view->visible()); | 51 EXPECT_TRUE(in_user_view->visible()); |
| 52 | 52 |
| 53 shell_delegate->SetMediaCaptureState(MEDIA_CAPTURE_NONE); | 53 shell_delegate->SetMediaCaptureState(MEDIA_CAPTURE_NONE); |
| 54 EXPECT_FALSE(tray_view->visible()); | 54 EXPECT_FALSE(tray_view->visible()); |
| 55 EXPECT_FALSE(in_user_view->visible()); | 55 EXPECT_FALSE(in_user_view->visible()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace ash | 58 } // namespace ash |
| OLD | NEW |