| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef ASH_TEST_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
| 6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace aura { | 37 namespace aura { |
| 38 class RootWindow; | 38 class RootWindow; |
| 39 class Window; | 39 class Window; |
| 40 class WindowDelegate; | 40 class WindowDelegate; |
| 41 } // namespace aura | 41 } // namespace aura |
| 42 | 42 |
| 43 namespace ash { | 43 namespace ash { |
| 44 class DisplayManager; | 44 class DisplayManager; |
| 45 class SystemTray; |
| 45 | 46 |
| 46 namespace test { | 47 namespace test { |
| 47 | 48 |
| 48 class AshTestHelper; | 49 class AshTestHelper; |
| 49 class TestScreenshotDelegate; | 50 class TestScreenshotDelegate; |
| 50 class TestSystemTrayDelegate; | 51 class TestSystemTrayDelegate; |
| 51 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
| 52 class TestMetroViewerProcessHost; | 53 class TestMetroViewerProcessHost; |
| 53 #endif | 54 #endif |
| 54 | 55 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Proxy to AshTestHelper::SupportsHostWindowResize(). | 117 // Proxy to AshTestHelper::SupportsHostWindowResize(). |
| 117 static bool SupportsHostWindowResize(); | 118 static bool SupportsHostWindowResize(); |
| 118 | 119 |
| 119 void set_start_session(bool start_session) { start_session_ = start_session; } | 120 void set_start_session(bool start_session) { start_session_ = start_session; } |
| 120 | 121 |
| 121 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } | 122 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } |
| 122 | 123 |
| 123 void RunAllPendingInMessageLoop(); | 124 void RunAllPendingInMessageLoop(); |
| 124 | 125 |
| 125 TestScreenshotDelegate* GetScreenshotDelegate(); | 126 TestScreenshotDelegate* GetScreenshotDelegate(); |
| 127 |
| 128 // Returns the system tray on the primary display. |
| 129 SystemTray* GetPrimarySystemTray(); |
| 130 |
| 126 TestSystemTrayDelegate* GetSystemTrayDelegate(); | 131 TestSystemTrayDelegate* GetSystemTrayDelegate(); |
| 127 | 132 |
| 128 // Utility methods to emulate user logged in or not, session started or not | 133 // Utility methods to emulate user logged in or not, session started or not |
| 129 // and user able to lock screen or not cases. | 134 // and user able to lock screen or not cases. |
| 130 void SetSessionStarted(bool session_started); | 135 void SetSessionStarted(bool session_started); |
| 131 // Sets the SessionState to active, marking the begining of transitioning to | 136 // Sets the SessionState to active, marking the begining of transitioning to |
| 132 // a user session. The session is considered blocked until SetSessionStarted | 137 // a user session. The session is considered blocked until SetSessionStarted |
| 133 // is called. | 138 // is called. |
| 134 void SetSessionStarting(); | 139 void SetSessionStarting(); |
| 135 void SetUserLoggedIn(bool user_logged_in); | 140 void SetUserLoggedIn(bool user_logged_in); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 ~NoSessionAshTestBase() override {} | 172 ~NoSessionAshTestBase() override {} |
| 168 | 173 |
| 169 private: | 174 private: |
| 170 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 175 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 171 }; | 176 }; |
| 172 | 177 |
| 173 } // namespace test | 178 } // namespace test |
| 174 } // namespace ash | 179 } // namespace ash |
| 175 | 180 |
| 176 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 181 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |