OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/instant/search.h" |
5 #include "chrome/browser/search_engines/template_url_service.h" | 6 #include "chrome/browser/search_engines/template_url_service.h" |
6 #include "chrome/browser/search_engines/template_url_service_factory.h" | 7 #include "chrome/browser/search_engines/template_url_service_factory.h" |
7 #include "chrome/browser/ui/search/search.h" | |
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 8 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "chrome/test/base/browser_with_test_window_test.h" | 10 #include "chrome/test/base/browser_with_test_window_test.h" |
11 #include "content/public/browser/navigation_entry.h" | 11 #include "content/public/browser/navigation_entry.h" |
12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
13 | 13 |
14 typedef BrowserWithTestWindowTest BookmarkTest; | 14 typedef BrowserWithTestWindowTest BookmarkTest; |
15 | 15 |
16 // Verify that the detached bookmark bar is visible on the new tab page. | 16 // Verify that the detached bookmark bar is visible on the new tab page. |
17 TEST_F(BookmarkTest, DetachedBookmarkBarOnNTP) { | 17 TEST_F(BookmarkTest, DetachedBookmarkBarOnNTP) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(BookmarkInstantExtendedTest); | 63 DISALLOW_COPY_AND_ASSIGN(BookmarkInstantExtendedTest); |
64 }; | 64 }; |
65 | 65 |
66 // Verify that in instant extended mode the detached bookmark bar is visible on | 66 // Verify that in instant extended mode the detached bookmark bar is visible on |
67 // the new tab page. | 67 // the new tab page. |
68 TEST_F(BookmarkInstantExtendedTest, DetachedBookmarkBarOnNTP) { | 68 TEST_F(BookmarkInstantExtendedTest, DetachedBookmarkBarOnNTP) { |
69 AddTab(browser(), GURL(chrome::kChromeUINewTabURL)); | 69 AddTab(browser(), GURL(chrome::kChromeUINewTabURL)); |
70 EXPECT_EQ(BookmarkBar::DETACHED, browser()->bookmark_bar_state()); | 70 EXPECT_EQ(BookmarkBar::DETACHED, browser()->bookmark_bar_state()); |
71 } | 71 } |
OLD | NEW |