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 "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 6 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 |
| 9 namespace chromeos { |
| 10 namespace input_method { |
| 11 |
| 12 TEST(InputMethodManagerTest, TestInitialize) { |
| 13 InputMethodManager::Initialize(); |
| 14 InputMethodManager* manager = InputMethodManager::GetInstance(); |
| 15 EXPECT_TRUE(manager); |
| 16 InputMethodManager::Shutdown(); |
| 17 } |
| 18 |
| 19 TEST(InputMethodManagerTest, TestInitializeForTesting) { |
| 20 InputMethodManager::InitializeForTesting(new MockInputMethodManager); |
| 21 InputMethodManager* manager = InputMethodManager::GetInstance(); |
| 22 EXPECT_TRUE(manager); |
| 23 InputMethodManager::Shutdown(); |
| 24 } |
| 25 |
| 26 } // namespace input_method |
| 27 } // namespace chromeos |
OLD | NEW |