Index: chrome/browser/chromeos/input_method/input_method_manager_unittest.cc |
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_unittest.cc b/chrome/browser/chromeos/input_method/input_method_manager_unittest.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27f0caf1afbf02b170bb1f004b622b59e7bc5e31 |
--- /dev/null |
+++ b/chrome/browser/chromeos/input_method/input_method_manager_unittest.cc |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/chromeos/input_method/input_method_manager.h" |
+#include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
+#include "testing/gtest/include/gtest/gtest.h" |
+ |
+namespace chromeos { |
+namespace input_method { |
+ |
+TEST(InputMethodManagerTest, TestInitialize) { |
+ InputMethodManager::Initialize(); |
+ InputMethodManager* manager = InputMethodManager::GetInstance(); |
+ EXPECT_TRUE(manager); |
+ InputMethodManager::Shutdown(); |
+} |
+ |
+TEST(InputMethodManagerTest, TestInitializeForTesting) { |
+ InputMethodManager::InitializeForTesting(new MockInputMethodManager); |
+ InputMethodManager* manager = InputMethodManager::GetInstance(); |
+ EXPECT_TRUE(manager); |
+ InputMethodManager::Shutdown(); |
+} |
+ |
+} // namespace input_method |
+} // namespace chromeos |