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

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

Issue 11558017: Decouple input_method from BrowserThread (and content/). (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"
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698