OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/metrics/histogram.h" | 6 #include "base/metrics/histogram.h" |
7 #include "base/metrics/histogram_samples.h" | 7 #include "base/metrics/histogram_samples.h" |
8 #include "base/metrics/statistics_recorder.h" | 8 #include "base/metrics/statistics_recorder.h" |
9 #include "base/test/histogram_tester.h" | 9 #include "base/test/histogram_tester.h" |
10 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" | 10 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" |
11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
12 #include "chrome/browser/chromeos/input_method/input_method_engine_interface.h" | 12 #include "chrome/browser/chromeos/input_method/input_method_engine_interface.h" |
13 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" | 13 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
14 #include "chromeos/ime/extension_ime_util.h" | |
15 #include "chromeos/ime/mock_component_extension_ime_manager_delegate.h" | |
16 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/base/ime/chromeos/extension_ime_util.h" |
| 16 #include "ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.h" |
17 #include "ui/base/ime/chromeos/mock_ime_input_context_handler.h" | 17 #include "ui/base/ime/chromeos/mock_ime_input_context_handler.h" |
18 #include "ui/base/ime/text_input_flags.h" | 18 #include "ui/base/ime/text_input_flags.h" |
19 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 namespace input_method { | 23 namespace input_method { |
24 namespace { | 24 namespace { |
25 | 25 |
26 const char kTestExtensionId[] = "mppnpdlheglhdfmldimlhpnegondlapf"; | 26 const char kTestExtensionId[] = "mppnpdlheglhdfmldimlhpnegondlapf"; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 TEST_F(InputMethodEngineTest, TestCompositionBoundsChanged) { | 258 TEST_F(InputMethodEngineTest, TestCompositionBoundsChanged) { |
259 CreateEngine(true); | 259 CreateEngine(true); |
260 // Enable/disable with focus. | 260 // Enable/disable with focus. |
261 engine_->SetCompositionBounds(gfx::Rect()); | 261 engine_->SetCompositionBounds(gfx::Rect()); |
262 EXPECT_EQ(ONCOMPOSITIONBOUNDSCHANGED, | 262 EXPECT_EQ(ONCOMPOSITIONBOUNDSCHANGED, |
263 observer_->GetCallsBitmapAndReset()); | 263 observer_->GetCallsBitmapAndReset()); |
264 } | 264 } |
265 | 265 |
266 } // namespace input_method | 266 } // namespace input_method |
267 } // namespace chromeos | 267 } // namespace chromeos |
OLD | NEW |