| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h" | 5 #include "chrome/browser/chromeos/input_method/input_method_manager_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/chromeos/language_preferences.h" | |
| 12 #include "chrome/browser/chromeos/input_method/mock_candidate_window.h" | 11 #include "chrome/browser/chromeos/input_method/mock_candidate_window.h" |
| 13 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h" | 12 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h" |
| 14 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h" | 13 #include "chrome/browser/chromeos/input_method/mock_xkeyboard.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "ui/base/accelerators/accelerator.h" | 15 #include "ui/base/accelerators/accelerator.h" |
| 17 #include "ui/base/keycodes/keyboard_codes.h" | 16 #include "ui/base/keycodes/keyboard_codes.h" |
| 18 | 17 |
| 19 namespace chromeos { | 18 namespace chromeos { |
| 20 | 19 |
| 21 extern const char* kExtensionImePrefix; | 20 extern const char* kExtensionImePrefix; |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 EXPECT_EQ(2U, manager_->GetNumActiveInputMethods()); | 898 EXPECT_EQ(2U, manager_->GetNumActiveInputMethods()); |
| 900 EXPECT_EQ(1, controller_->reset_count_); | 899 EXPECT_EQ(1, controller_->reset_count_); |
| 901 manager_->ChangeInputMethod("mozc"); | 900 manager_->ChangeInputMethod("mozc"); |
| 902 EXPECT_EQ(1, controller_->reset_count_); | 901 EXPECT_EQ(1, controller_->reset_count_); |
| 903 manager_->ChangeInputMethod("xkb:us::eng"); | 902 manager_->ChangeInputMethod("xkb:us::eng"); |
| 904 EXPECT_EQ(2, controller_->reset_count_); | 903 EXPECT_EQ(2, controller_->reset_count_); |
| 905 } | 904 } |
| 906 | 905 |
| 907 } // namespace input_method | 906 } // namespace input_method |
| 908 } // namespace chromeos | 907 } // namespace chromeos |
| OLD | NEW |