| 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 "chromeos/ime/input_method_config.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 namespace input_method { | 12 namespace input_method { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // A mock class for testing SetInputMethodConfig(), AddObserver(), and | 16 // A mock class for testing SetInputMethodConfig(), AddObserver(), and |
| 17 // RemoveObserver() methods in IBusControllerBase. | 17 // RemoveObserver() methods in IBusControllerBase. |
| 18 class TestIBusController : public IBusControllerBase { | 18 class TestIBusController : public IBusControllerBase { |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 controller_->RemoveObserver(&observer2); | 179 controller_->RemoveObserver(&observer2); |
| 180 EXPECT_EQ(0U, controller_->GetObserverCount()); | 180 EXPECT_EQ(0U, controller_->GetObserverCount()); |
| 181 } | 181 } |
| 182 | 182 |
| 183 TEST_F(IBusControllerBaseTest, TestGetCurrentProperties) { | 183 TEST_F(IBusControllerBaseTest, TestGetCurrentProperties) { |
| 184 EXPECT_EQ(0U, controller_->GetCurrentProperties().size()); | 184 EXPECT_EQ(0U, controller_->GetCurrentProperties().size()); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace input_method | 187 } // namespace input_method |
| 188 } // namespace chromeos | 188 } // namespace chromeos |
| OLD | NEW |