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

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

Issue 9999018: chrome/browser/chromeos/input_method/ refactoring [part 6 of 6] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, remove preferences.h and language_preference.* from this CL Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "base/memory/scoped_ptr.h"
kinaba 2012/04/13 08:08:53 logging and scoped_ptr don't look to be used.
Yusuke Sato 2012/04/13 08:59:28 Done.
7 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
8 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace chromeos {
12 namespace input_method {
13
14 TEST(InputMethodManagerTest, TestInitialize) {
15 InputMethodManager::Initialize();
16 InputMethodManager* manager = InputMethodManager::GetInstance();
17 EXPECT_TRUE(manager);
18 InputMethodManager::Shutdown();
19 }
20
21 TEST(InputMethodManagerTest, TestInitializeForTesting) {
22 InputMethodManager::InitializeForTesting(new MockInputMethodManager);
23 InputMethodManager* manager = InputMethodManager::GetInstance();
24 EXPECT_TRUE(manager);
25 InputMethodManager::Shutdown();
26 }
27
28 } // namespace input_method
29 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698