Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / input_method / input_method_configuration_unittest.cc
blobf1175289b2fe9d5ab7a37ea152bab7147bb3a4ff
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.
5 #include "chrome/browser/chromeos/input_method/input_method_configuration.h"
6 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 namespace chromeos {
10 namespace input_method {
12 TEST(InputMethodConfigurationTest, TestInitialize) {
13 InputMethodManager* manager = InputMethodManager::Get();
14 EXPECT_FALSE(manager);
16 Initialize();
17 manager = InputMethodManager::Get();
18 EXPECT_TRUE(manager);
19 Shutdown();
22 TEST(InputMethodConfigurationTest, TestInitializeForTesting) {
23 InputMethodManager* manager = InputMethodManager::Get();
24 EXPECT_FALSE(manager);
26 InitializeForTesting(new MockInputMethodManager);
27 manager = InputMethodManager::Get();
28 EXPECT_TRUE(manager);
29 Shutdown();
32 } // namespace input_method
33 } // namespace chromeos