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 "ui/chromeos/ime/candidate_window_view.h" | 5 #include "ui/chromeos/ime/candidate_window_view.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
| 11 #include "base/macros.h" |
9 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "ui/chromeos/ime/candidate_view.h" | 15 #include "ui/chromeos/ime/candidate_view.h" |
13 #include "ui/views/test/views_test_base.h" | 16 #include "ui/views/test/views_test_base.h" |
14 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
15 | 18 |
16 namespace ui { | 19 namespace ui { |
17 namespace ime { | 20 namespace ime { |
18 | 21 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 // Check the selected index is invalidated. | 386 // Check the selected index is invalidated. |
384 EXPECT_EQ(-1, selected_candidate_index_in_page()); | 387 EXPECT_EQ(-1, selected_candidate_index_in_page()); |
385 EXPECT_EQ(before_height, GetCandidateAt(0)->GetContentsBounds().height()); | 388 EXPECT_EQ(before_height, GetCandidateAt(0)->GetContentsBounds().height()); |
386 // Checks all entry have same row height. | 389 // Checks all entry have same row height. |
387 for (size_t i = 1; i < GetCandidatesSize(); ++i) | 390 for (size_t i = 1; i < GetCandidatesSize(); ++i) |
388 EXPECT_EQ(before_height, GetCandidateAt(i)->GetContentsBounds().height()); | 391 EXPECT_EQ(before_height, GetCandidateAt(i)->GetContentsBounds().height()); |
389 } | 392 } |
390 | 393 |
391 } // namespace ime | 394 } // namespace ime |
392 } // namespace ui | 395 } // namespace ui |
OLD | NEW |