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

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

Issue 1209663002: Use EventHandler for IME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/shell.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 <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
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
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_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698