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/macros.h" |
6 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
7 #include "base/metrics/histogram_samples.h" | 8 #include "base/metrics/histogram_samples.h" |
8 #include "base/metrics/statistics_recorder.h" | 9 #include "base/metrics/statistics_recorder.h" |
9 #include "base/test/histogram_tester.h" | 10 #include "base/test/histogram_tester.h" |
10 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" |
11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 12 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
12 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" | 13 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 14 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/base/ime/chromeos/extension_ime_util.h" | 16 #include "ui/base/ime/chromeos/extension_ime_util.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 CreateEngine(true); | 264 CreateEngine(true); |
264 // Enable/disable with focus. | 265 // Enable/disable with focus. |
265 std::vector<gfx::Rect> rects; | 266 std::vector<gfx::Rect> rects; |
266 rects.push_back(gfx::Rect()); | 267 rects.push_back(gfx::Rect()); |
267 engine_->SetCompositionBounds(rects); | 268 engine_->SetCompositionBounds(rects); |
268 EXPECT_EQ(ONCOMPOSITIONBOUNDSCHANGED, observer_->GetCallsBitmapAndReset()); | 269 EXPECT_EQ(ONCOMPOSITIONBOUNDSCHANGED, observer_->GetCallsBitmapAndReset()); |
269 } | 270 } |
270 | 271 |
271 } // namespace input_method | 272 } // namespace input_method |
272 } // namespace chromeos | 273 } // namespace chromeos |
OLD | NEW |