OLD | NEW |
---|---|
(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 | |
OLD | NEW |