Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: ui/app_list/views/search_result_page_view_unittest.cc

Issue 793633002: Allow arrow keys to navigate tile results in the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@now_source_again
Patch Set: fix_test Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | ui/app_list/views/search_result_tile_item_list_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_page_view_unittest.cc
diff --git a/ui/app_list/views/search_result_page_view_unittest.cc b/ui/app_list/views/search_result_page_view_unittest.cc
index e89657ee35d3f094ee64712e941d731a62860cb3..33f72f63210725215acb81d28aabe875e40deead 100644
--- a/ui/app_list/views/search_result_page_view_unittest.cc
+++ b/ui/app_list/views/search_result_page_view_unittest.cc
@@ -13,6 +13,7 @@
#include "ui/app_list/views/search_result_list_view_delegate.h"
#include "ui/app_list/views/search_result_tile_item_list_view.h"
#include "ui/app_list/views/search_result_view.h"
+#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/test/views_test_base.h"
namespace app_list {
@@ -30,7 +31,8 @@ class SearchResultPageViewTest : public views::ViewsTestBase,
view_.reset(new SearchResultPageView());
list_view_ = new SearchResultListView(this, &view_delegate_);
view_->AddSearchResultContainerView(GetResults(), list_view_);
- tile_list_view_ = new SearchResultTileItemListView();
+ textfield_.reset(new views::Textfield());
+ tile_list_view_ = new SearchResultTileItemListView(textfield_.get());
view_->AddSearchResultContainerView(GetResults(), tile_list_view_);
}
@@ -74,6 +76,7 @@ class SearchResultPageViewTest : public views::ViewsTestBase,
AppListTestViewDelegate view_delegate_;
scoped_ptr<SearchResultPageView> view_;
+ scoped_ptr<views::Textfield> textfield_;
DISALLOW_COPY_AND_ASSIGN(SearchResultPageViewTest);
};
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | ui/app_list/views/search_result_tile_item_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698