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

Side by Side Diff: ash/test/ash_test_base.h

Issue 2059383002: mash: Move TrayUpdate to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ashconstants
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « ash/system/tray_update_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « ash/system/tray_update_unittest.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698