OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stddef.h> |
| 6 |
5 #include <algorithm> | 7 #include <algorithm> |
6 | 8 |
7 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "base/macros.h" |
8 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
9 #include "chrome/browser/chromeos/input_method/mode_indicator_controller.h" | 12 #include "chrome/browser/chromeos/input_method/mode_indicator_controller.h" |
10 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
11 #include "content/public/test/browser_test_utils.h" | 14 #include "content/public/test/browser_test_utils.h" |
12 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" | 17 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" |
15 #include "ui/base/ime/chromeos/extension_ime_util.h" | 18 #include "ui/base/ime/chromeos/extension_ime_util.h" |
16 #include "ui/base/ime/chromeos/ime_candidate_window_handler_interface.h" | 19 #include "ui/base/ime/chromeos/ime_candidate_window_handler_interface.h" |
17 #include "ui/base/ime/chromeos/input_method_manager.h" | 20 #include "ui/base/ime/chromeos/input_method_manager.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // When a new mode indicator is displayed, the previous one should be | 219 // When a new mode indicator is displayed, the previous one should be |
217 // closed. | 220 // closed. |
218 content::RunAllPendingInMessageLoop(); | 221 content::RunAllPendingInMessageLoop(); |
219 EXPECT_EQ(1UL, observer.widget_list_size()); | 222 EXPECT_EQ(1UL, observer.widget_list_size()); |
220 const views::Widget* widget2 = observer.widget_list()[0]; | 223 const views::Widget* widget2 = observer.widget_list()[0]; |
221 EXPECT_NE(widget1, widget2); | 224 EXPECT_NE(widget1, widget2); |
222 } | 225 } |
223 } | 226 } |
224 } // namespace input_method | 227 } // namespace input_method |
225 } // namespace chromeos | 228 } // namespace chromeos |
OLD | NEW |