Chromium Code Reviews| 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 |