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

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

Issue 11594008: Revert 173477 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | Annotate | Revision Log
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/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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698