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

Unified 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 side-by-side diff with in-line comments
Download patch
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..344bc6563eff0e647111248ebd2333454c2bbdc8
--- /dev/null
+++ b/chrome/browser/chromeos/input_method/input_method_manager_unittest.cc
@@ -0,0 +1,29 @@
+// 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 "base/logging.h"
+#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.
+#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

Powered by Google App Engine
This is Rietveld 408576698