| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |