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

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

Issue 909293002: Properly set ShelfAlignment during login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 (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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } 110 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); }
111 111
112 void RunAllPendingInMessageLoop(); 112 void RunAllPendingInMessageLoop();
113 113
114 TestScreenshotDelegate* GetScreenshotDelegate(); 114 TestScreenshotDelegate* GetScreenshotDelegate();
115 TestSystemTrayDelegate* GetSystemTrayDelegate(); 115 TestSystemTrayDelegate* GetSystemTrayDelegate();
116 116
117 // Utility methods to emulate user logged in or not, session started or not 117 // Utility methods to emulate user logged in or not, session started or not
118 // and user able to lock screen or not cases. 118 // and user able to lock screen or not cases.
119 void SetSessionStarted(bool session_started); 119 void SetSessionStarted(bool session_started);
120 void SetSessionStarting();
James Cook 2015/02/17 20:03:36 Please document how this relates to SetSessionStar
120 void SetUserLoggedIn(bool user_logged_in); 121 void SetUserLoggedIn(bool user_logged_in);
121 void SetCanLockScreen(bool can_lock_screen); 122 void SetCanLockScreen(bool can_lock_screen);
122 void SetShouldLockScreenBeforeSuspending(bool should_lock); 123 void SetShouldLockScreenBeforeSuspending(bool should_lock);
123 void SetUserAddingScreenRunning(bool user_adding_screen_running); 124 void SetUserAddingScreenRunning(bool user_adding_screen_running);
124 125
125 // Methods to emulate blocking and unblocking user session with given 126 // Methods to emulate blocking and unblocking user session with given
126 // |block_reason|. 127 // |block_reason|.
127 void BlockUserSession(UserSessionBlockReason block_reason); 128 void BlockUserSession(UserSessionBlockReason block_reason);
128 void UnblockUserSession(); 129 void UnblockUserSession();
129 130
(...skipping 24 matching lines...) Expand all
154 ~NoSessionAshTestBase() override {} 155 ~NoSessionAshTestBase() override {}
155 156
156 private: 157 private:
157 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); 158 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
158 }; 159 };
159 160
160 } // namespace test 161 } // namespace test
161 } // namespace ash 162 } // namespace ash
162 163
163 #endif // ASH_TEST_ASH_TEST_BASE_H_ 164 #endif // ASH_TEST_ASH_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698