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

Side by Side Diff: chrome/browser/chromeos/input_method/ibus_controller_base_unittest.cc

Issue 10092006: Add Reset() to IBusController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 | Annotate | Revision Log
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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "chrome/browser/chromeos/input_method/ibus_controller_base.h" 7 #include "chrome/browser/chromeos/input_method/ibus_controller_base.h"
8 #include "chrome/browser/chromeos/input_method/input_method_config.h" 8 #include "chrome/browser/chromeos/input_method/input_method_config.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 10 matching lines...) Expand all
21 : set_input_method_config_internal_count_(0), 21 : set_input_method_config_internal_count_(0),
22 set_input_method_config_internal_return_(true) { 22 set_input_method_config_internal_return_(true) {
23 } 23 }
24 virtual ~TestIBusController() { 24 virtual ~TestIBusController() {
25 } 25 }
26 26
27 // IBusController overrides: 27 // IBusController overrides:
28 virtual bool Start() OVERRIDE { 28 virtual bool Start() OVERRIDE {
29 return true; 29 return true;
30 } 30 }
31 virtual void Reset() OVERRIDE {
32 }
31 virtual bool Stop() OVERRIDE { 33 virtual bool Stop() OVERRIDE {
32 return true; 34 return true;
33 } 35 }
34 virtual bool ChangeInputMethod(const std::string& id) OVERRIDE { 36 virtual bool ChangeInputMethod(const std::string& id) OVERRIDE {
35 return true; 37 return true;
36 } 38 }
37 virtual bool ActivateInputMethodProperty(const std::string& key) OVERRIDE { 39 virtual bool ActivateInputMethodProperty(const std::string& key) OVERRIDE {
38 return true; 40 return true;
39 } 41 }
40 #if defined(USE_VIRTUAL_KEYBOARD) 42 #if defined(USE_VIRTUAL_KEYBOARD)
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 controller_->RemoveObserver(&observer2); 193 controller_->RemoveObserver(&observer2);
192 EXPECT_EQ(0U, controller_->GetObserverCount()); 194 EXPECT_EQ(0U, controller_->GetObserverCount());
193 } 195 }
194 196
195 TEST_F(IBusControllerBaseTest, TestGetCurrentProperties) { 197 TEST_F(IBusControllerBaseTest, TestGetCurrentProperties) {
196 EXPECT_EQ(0U, controller_->GetCurrentProperties().size()); 198 EXPECT_EQ(0U, controller_->GetCurrentProperties().size());
197 } 199 }
198 200
199 } // namespace input_method 201 } // namespace input_method
200 } // namespace chromeos 202 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/ibus_controller.h ('k') | chrome/browser/chromeos/input_method/ibus_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698