| Index: ui/app_list/views/app_list_view_unittest.cc
|
| diff --git a/ui/app_list/views/app_list_view_unittest.cc b/ui/app_list/views/app_list_view_unittest.cc
|
| index 8c5c73ac0a495b6f59451c5f0abffd739d67ffa5..dbb948a3c8581fd0ac2c9ef85ca2e0555350ab3b 100644
|
| --- a/ui/app_list/views/app_list_view_unittest.cc
|
| +++ b/ui/app_list/views/app_list_view_unittest.cc
|
| @@ -273,10 +273,15 @@ void AppListViewTestContext::Close() {
|
|
|
| bool AppListViewTestContext::CheckSearchBoxWidget(const gfx::Rect& expected) {
|
| ContentsView* contents_view = view_->app_list_main_view()->contents_view();
|
| - gfx::Point point = expected.origin();
|
| + // Adjust for the search box view's shadow.
|
| + gfx::Rect expected_with_shadow =
|
| + view_->app_list_main_view()
|
| + ->search_box_view()
|
| + ->GetViewBoundsForSearchBoxContentsBounds(expected);
|
| + gfx::Point point = expected_with_shadow.origin();
|
| views::View::ConvertPointToScreen(contents_view, &point);
|
|
|
| - return gfx::Rect(point, expected.size()) ==
|
| + return gfx::Rect(point, expected_with_shadow.size()) ==
|
| view_->search_box_widget()->GetWindowBoundsInScreen();
|
| }
|
|
|
|
|