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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void SetUserLoggedIn(bool user_logged_in); | 131 void SetUserLoggedIn(bool user_logged_in); |
132 void SetCanLockScreen(bool can_lock_screen); | 132 void SetCanLockScreen(bool can_lock_screen); |
133 void SetShouldLockScreenBeforeSuspending(bool should_lock); | 133 void SetShouldLockScreenBeforeSuspending(bool should_lock); |
134 void SetUserAddingScreenRunning(bool user_adding_screen_running); | 134 void SetUserAddingScreenRunning(bool user_adding_screen_running); |
135 | 135 |
136 // Methods to emulate blocking and unblocking user session with given | 136 // Methods to emulate blocking and unblocking user session with given |
137 // |block_reason|. | 137 // |block_reason|. |
138 void BlockUserSession(UserSessionBlockReason block_reason); | 138 void BlockUserSession(UserSessionBlockReason block_reason); |
139 void UnblockUserSession(); | 139 void UnblockUserSession(); |
140 | 140 |
| 141 void DisableIME(); |
| 142 |
141 private: | 143 private: |
142 bool setup_called_; | 144 bool setup_called_; |
143 bool teardown_called_; | 145 bool teardown_called_; |
144 // |SetUp()| doesn't activate session if this is set to false. | 146 // |SetUp()| doesn't activate session if this is set to false. |
145 bool start_session_; | 147 bool start_session_; |
146 scoped_ptr<content::TestBrowserThreadBundle> thread_bundle_; | 148 scoped_ptr<content::TestBrowserThreadBundle> thread_bundle_; |
147 scoped_ptr<AshTestHelper> ash_test_helper_; | 149 scoped_ptr<AshTestHelper> ash_test_helper_; |
148 scoped_ptr<ui::test::EventGenerator> event_generator_; | 150 scoped_ptr<ui::test::EventGenerator> event_generator_; |
149 #if defined(OS_WIN) | 151 #if defined(OS_WIN) |
150 // Note that the order is important here as ipc_thread_ should be destroyed | 152 // Note that the order is important here as ipc_thread_ should be destroyed |
(...skipping 14 matching lines...) Expand all Loading... |
165 ~NoSessionAshTestBase() override {} | 167 ~NoSessionAshTestBase() override {} |
166 | 168 |
167 private: | 169 private: |
168 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 170 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
169 }; | 171 }; |
170 | 172 |
171 } // namespace test | 173 } // namespace test |
172 } // namespace ash | 174 } // namespace ash |
173 | 175 |
174 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 176 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |