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 "athena/home/athena_start_page_view.h" | 5 #include "athena/home/athena_start_page_view.h" |
6 | 6 |
7 #include "athena/home/home_card_constants.h" | 7 #include "athena/home/home_card_constants.h" |
8 #include "athena/test/athena_test_base.h" | 8 #include "athena/test/base/athena_test_base.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "ui/app_list/app_list_switches.h" | 12 #include "ui/app_list/app_list_switches.h" |
13 #include "ui/app_list/search_box_model.h" | 13 #include "ui/app_list/search_box_model.h" |
14 #include "ui/app_list/test/app_list_test_model.h" | 14 #include "ui/app_list/test/app_list_test_model.h" |
15 #include "ui/app_list/test/app_list_test_view_delegate.h" | 15 #include "ui/app_list/test/app_list_test_view_delegate.h" |
16 #include "ui/app_list/views/search_box_view.h" | 16 #include "ui/app_list/views/search_box_view.h" |
17 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 #include "ui/views/controls/textfield/textfield.h" | 18 #include "ui/views/controls/textfield/textfield.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 EXPECT_GT(base_search_box_bounds.y(), GetSearchBoxBounds().y()); | 220 EXPECT_GT(base_search_box_bounds.y(), GetSearchBoxBounds().y()); |
221 EXPECT_EQ(query, GetVisibleQuery()); | 221 EXPECT_EQ(query, GetVisibleQuery()); |
222 | 222 |
223 SetSearchQuery(base::string16()); | 223 SetSearchQuery(base::string16()); |
224 EXPECT_TRUE(IsLogoVisible()); | 224 EXPECT_TRUE(IsLogoVisible()); |
225 EXPECT_EQ(base_search_box_bounds.ToString(), GetSearchBoxBounds().ToString()); | 225 EXPECT_EQ(base_search_box_bounds.ToString(), GetSearchBoxBounds().ToString()); |
226 EXPECT_TRUE(GetVisibleQuery().empty()); | 226 EXPECT_TRUE(GetVisibleQuery().empty()); |
227 } | 227 } |
228 | 228 |
229 } // namespace athena | 229 } // namespace athena |
OLD | NEW |