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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_unittest.cc

Issue 12217127: Alternate NTP: Show detached bookmark bar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to unit_tests Created 7 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698