| 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 "ui/app_list/views/apps_grid_view.h" | 5 #include "ui/app_list/views/apps_grid_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "ui/app_list/app_list_constants.h" | 17 #include "ui/app_list/app_list_constants.h" |
| 18 #include "ui/app_list/app_list_folder_item.h" | 18 #include "ui/app_list/app_list_folder_item.h" |
| 19 #include "ui/app_list/app_list_item.h" | 19 #include "ui/app_list/app_list_item.h" |
| 20 #include "ui/app_list/app_list_model.h" | 20 #include "ui/app_list/app_list_model.h" |
| 21 #include "ui/app_list/app_list_switches.h" | 21 #include "ui/app_list/app_list_switches.h" |
| 22 #include "ui/app_list/pagination_model.h" | 22 #include "ui/app_list/pagination_model.h" |
| 23 #include "ui/app_list/test/app_list_test_model.h" | 23 #include "ui/app_list/test/app_list_test_model.h" |
| 24 #include "ui/app_list/views/app_list_item_view.h" | 24 #include "ui/app_list/views/app_list_item_view.h" |
| 25 #include "ui/app_list/views/apps_grid_view_folder_delegate.h" | 25 #include "ui/app_list/views/apps_grid_view_folder_delegate.h" |
| 26 #include "ui/app_list/views/test/apps_grid_view_test_api.h" | 26 #include "ui/app_list/views/test/apps_grid_view_test_api.h" |
| 27 #include "ui/views/controls/label.h" |
| 27 #include "ui/views/test/views_test_base.h" | 28 #include "ui/views/test/views_test_base.h" |
| 28 | 29 |
| 29 namespace app_list { | 30 namespace app_list { |
| 30 namespace test { | 31 namespace test { |
| 31 | 32 |
| 32 namespace { | 33 namespace { |
| 33 | 34 |
| 34 const int kIconDimension = 48; | 35 const int kIconDimension = 48; |
| 35 const int kCols = 2; | 36 const int kCols = 2; |
| 36 const int kRows = 2; | 37 const int kRows = 2; |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 AppListItemView* item_view = GetItemViewAt(0); | 702 AppListItemView* item_view = GetItemViewAt(0); |
| 702 ASSERT_TRUE(item_view); | 703 ASSERT_TRUE(item_view); |
| 703 const views::Label* title_label = item_view->title(); | 704 const views::Label* title_label = item_view->title(); |
| 704 EXPECT_FALSE(title_label->GetTooltipText( | 705 EXPECT_FALSE(title_label->GetTooltipText( |
| 705 title_label->bounds().CenterPoint(), &actual_tooltip)); | 706 title_label->bounds().CenterPoint(), &actual_tooltip)); |
| 706 EXPECT_EQ(title, base::UTF16ToUTF8(title_label->text())); | 707 EXPECT_EQ(title, base::UTF16ToUTF8(title_label->text())); |
| 707 } | 708 } |
| 708 | 709 |
| 709 } // namespace test | 710 } // namespace test |
| 710 } // namespace app_list | 711 } // namespace app_list |
| OLD | NEW |