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

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

Issue 10834108: Replace InputMethodEngineIBus. (Closed) Base URL: http://git.chromium.org/chromium/src.git@input_method_engine_ibus
Patch Set: Address comments Created 8 years, 4 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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool set_input_method_config_internal_return_; 66 bool set_input_method_config_internal_return_;
67 ConfigKeyType last_key_; 67 ConfigKeyType last_key_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(TestIBusController); 69 DISALLOW_COPY_AND_ASSIGN(TestIBusController);
70 }; 70 };
71 71
72 class TestObserver : public IBusController::Observer { 72 class TestObserver : public IBusController::Observer {
73 public: 73 public:
74 // IBusController::Observer overrides: 74 // IBusController::Observer overrides:
75 virtual void PropertyChanged() OVERRIDE {} 75 virtual void PropertyChanged() OVERRIDE {}
76 virtual void OnConnected() OVERRIDE {}
77 virtual void OnDisconnected() OVERRIDE {}
76 }; 78 };
77 79
78 class IBusControllerBaseTest : public testing::Test { 80 class IBusControllerBaseTest : public testing::Test {
79 public: 81 public:
80 virtual void SetUp() { 82 virtual void SetUp() {
81 controller_.reset(new TestIBusController); 83 controller_.reset(new TestIBusController);
82 } 84 }
83 virtual void TearDown() { 85 virtual void TearDown() {
84 controller_.reset(); 86 controller_.reset();
85 } 87 }
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 controller_->RemoveObserver(&observer2); 189 controller_->RemoveObserver(&observer2);
188 EXPECT_EQ(0U, controller_->GetObserverCount()); 190 EXPECT_EQ(0U, controller_->GetObserverCount());
189 } 191 }
190 192
191 TEST_F(IBusControllerBaseTest, TestGetCurrentProperties) { 193 TEST_F(IBusControllerBaseTest, TestGetCurrentProperties) {
192 EXPECT_EQ(0U, controller_->GetCurrentProperties().size()); 194 EXPECT_EQ(0U, controller_->GetCurrentProperties().size());
193 } 195 }
194 196
195 } // namespace input_method 197 } // namespace input_method
196 } // namespace chromeos 198 } // 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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698