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/screen_security/screen_tray_item.h" | 5 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h" |
| 6 #include "ash/common/system/tray/system_tray.h" |
6 #include "ash/shell.h" | 7 #include "ash/shell.h" |
7 #include "ash/system/chromeos/multi_user/user_switch_util.h" | 8 #include "ash/system/chromeos/multi_user/user_switch_util.h" |
8 #include "ash/system/tray/system_tray.h" | |
9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 class TrySwitchingUserTest : public ash::test::AshTestBase { | 13 class TrySwitchingUserTest : public ash::test::AshTestBase { |
14 public: | 14 public: |
15 // The action type to perform / check for upon user switching. | 15 // The action type to perform / check for upon user switching. |
16 enum ActionType { | 16 enum ActionType { |
17 NO_DIALOG, // No dialog should be shown. | 17 NO_DIALOG, // No dialog should be shown. |
18 ACCEPT_DIALOG, // A dialog should be shown and we should accept it. | 18 ACCEPT_DIALOG, // A dialog should be shown and we should accept it. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 EXPECT_EQ(1, stop_share_callback_hit_count()); | 206 EXPECT_EQ(1, stop_share_callback_hit_count()); |
207 // Another stop should have no effect. | 207 // Another stop should have no effect. |
208 StopShareSession(); | 208 StopShareSession(); |
209 StopCaptureSession(); | 209 StopCaptureSession(); |
210 EXPECT_EQ(1, switch_callback_hit_count()); | 210 EXPECT_EQ(1, switch_callback_hit_count()); |
211 EXPECT_EQ(1, stop_capture_callback_hit_count()); | 211 EXPECT_EQ(1, stop_capture_callback_hit_count()); |
212 EXPECT_EQ(1, stop_share_callback_hit_count()); | 212 EXPECT_EQ(1, stop_share_callback_hit_count()); |
213 } | 213 } |
214 | 214 |
215 } // namespace ash | 215 } // namespace ash |
OLD | NEW |