| 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/candidate_window_view.h" | 5 #include "chrome/browser/chromeos/input_method/candidate_window_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/browser/chromeos/input_method/candidate_view.h" | 11 #include "chrome/browser/chromeos/input_method/candidate_view.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "ui/views/test/views_test_base.h" | 13 #include "ui/views/test/views_test_base.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 namespace input_method { | 17 namespace input_method { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 for (size_t i = 1; i < candidate_window_view.candidate_views_.size(); ++i) { | 383 for (size_t i = 1; i < candidate_window_view.candidate_views_.size(); ++i) { |
| 384 const CandidateView* view = candidate_window_view.candidate_views_[i]; | 384 const CandidateView* view = candidate_window_view.candidate_views_[i]; |
| 385 EXPECT_EQ(before_height, view->GetContentsBounds().height()); | 385 EXPECT_EQ(before_height, view->GetContentsBounds().height()); |
| 386 } | 386 } |
| 387 | 387 |
| 388 // We should call CloseNow method, otherwise this test will leak memory. | 388 // We should call CloseNow method, otherwise this test will leak memory. |
| 389 widget->CloseNow(); | 389 widget->CloseNow(); |
| 390 } | 390 } |
| 391 } // namespace input_method | 391 } // namespace input_method |
| 392 } // namespace chromeos | 392 } // namespace chromeos |
| OLD | NEW |