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

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

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Add a unittest. Created 3 years, 7 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void SetUserLoggedIn(bool user_logged_in); 183 void SetUserLoggedIn(bool user_logged_in);
184 void SetCanLockScreen(bool can_lock); 184 void SetCanLockScreen(bool can_lock);
185 void SetShouldLockScreenAutomatically(bool should_lock); 185 void SetShouldLockScreenAutomatically(bool should_lock);
186 void SetUserAddingScreenRunning(bool user_adding_screen_running); 186 void SetUserAddingScreenRunning(bool user_adding_screen_running);
187 187
188 // Methods to emulate blocking and unblocking user session with given 188 // Methods to emulate blocking and unblocking user session with given
189 // |block_reason|. 189 // |block_reason|.
190 void BlockUserSession(UserSessionBlockReason block_reason); 190 void BlockUserSession(UserSessionBlockReason block_reason);
191 void UnblockUserSession(); 191 void UnblockUserSession();
192 192
193 void DisableIME();
194
195 // Swap the primary display with the secondary. 193 // Swap the primary display with the secondary.
196 void SwapPrimaryDisplay(); 194 void SwapPrimaryDisplay();
197 195
198 display::Display GetPrimaryDisplay(); 196 display::Display GetPrimaryDisplay();
199 display::Display GetSecondaryDisplay(); 197 display::Display GetSecondaryDisplay();
200 198
201 private: 199 private:
202 bool setup_called_; 200 bool setup_called_;
203 bool teardown_called_; 201 bool teardown_called_;
204 // |SetUp()| doesn't activate session if this is set to false. 202 // |SetUp()| doesn't activate session if this is set to false.
(...skipping 11 matching lines...) Expand all
216 ~NoSessionAshTestBase() override {} 214 ~NoSessionAshTestBase() override {}
217 215
218 private: 216 private:
219 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); 217 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
220 }; 218 };
221 219
222 } // namespace test 220 } // namespace test
223 } // namespace ash 221 } // namespace ash
224 222
225 #endif // ASH_TEST_ASH_TEST_BASE_H_ 223 #endif // ASH_TEST_ASH_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698