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