OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/ui/search/search.h" | |
6 #include "chrome/common/url_constants.h" | |
7 #include "chrome/test/base/browser_with_test_window_test.h" | |
8 | |
9 typedef BrowserWithTestWindowTest BookmarkTest; | |
10 | |
11 // Verify that the detached bookmark bar is visible on the new tab page. | |
12 TEST_F(BookmarkTest, DetachedBookmarkBarOnNTP) { | |
13 AddTab(browser(), GURL(chrome::kChromeUINewTabURL)); | |
14 EXPECT_EQ(BookmarkBar::DETACHED, browser()->bookmark_bar_state()); | |
15 } | |
16 | |
17 class BookmarkInstantExtendedTest : public BrowserWithTestWindowTest { | |
18 public: | |
19 BookmarkInstantExtendedTest() { | |
20 chrome::search::EnableInstantExtendedAPIForTesting(); | |
21 } | |
22 }; | |
sky
2013/02/12 22:29:11
private:DISALLOW...
sail
2013/02/12 22:52:03
Done.
| |
23 | |
24 // Verify that in instant extended mode the detached bookmark bar is visible on | |
25 // the new tab page. | |
26 TEST_F(BookmarkInstantExtendedTest, DetachedBookmarkBarOnNTP) { | |
27 AddTab(browser(), GURL(chrome::kChromeUINewTabURL)); | |
28 EXPECT_EQ(BookmarkBar::DETACHED, browser()->bookmark_bar_state()); | |
29 } | |
OLD | NEW |