| 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/ref_counted.h" |
| 6 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 7 #include "chrome/browser/chromeos/input_method/ibus_controller.h" | 8 #include "chrome/browser/chromeos/input_method/ibus_controller.h" |
| 9 #include "chrome/browser/chromeos/input_method/mock_sequenced_task_runner.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 11 |
| 10 namespace chromeos { | 12 namespace chromeos { |
| 11 namespace input_method { | 13 namespace input_method { |
| 12 | 14 |
| 13 TEST(IBusControllerTest, TestCreate) { | 15 TEST(IBusControllerTest, TestCreate) { |
| 14 scoped_ptr<IBusController> controller(IBusController::Create()); | 16 scoped_refptr<MockSequencedTaskRunner> default_task_runner( |
| 17 new MockSequencedTaskRunner); |
| 18 scoped_refptr<MockSequencedTaskRunner> worker_task_runner( |
| 19 new MockSequencedTaskRunner); |
| 20 scoped_ptr<IBusController> controller(IBusController::Create( |
| 21 default_task_runner, worker_task_runner)); |
| 15 EXPECT_TRUE(controller.get()); | 22 EXPECT_TRUE(controller.get()); |
| 16 } | 23 } |
| 17 | 24 |
| 18 } // namespace input_method | 25 } // namespace input_method |
| 19 } // namespace chromeos | 26 } // namespace chromeos |
| OLD | NEW |