Chromium Code Reviews| Index: chrome/browser/ui/bookmarks/bookmark_unittest.cc |
| diff --git a/chrome/browser/ui/bookmarks/bookmark_unittest.cc b/chrome/browser/ui/bookmarks/bookmark_unittest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7f91efc6320a1dedccd604939dfd7ad09b4baf3e |
| --- /dev/null |
| +++ b/chrome/browser/ui/bookmarks/bookmark_unittest.cc |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/ui/search/search.h" |
| +#include "chrome/common/url_constants.h" |
| +#include "chrome/test/base/browser_with_test_window_test.h" |
| + |
| +typedef BrowserWithTestWindowTest BookmarkTest; |
| + |
| +// Verify that the detached bookmark bar is visible on the new tab page. |
| +TEST_F(BookmarkTest, DetachedBookmarkBarOnNTP) { |
| + AddTab(browser(), GURL(chrome::kChromeUINewTabURL)); |
| + EXPECT_EQ(BookmarkBar::DETACHED, browser()->bookmark_bar_state()); |
| +} |
| + |
| +class BookmarkInstantExtendedTest : public BrowserWithTestWindowTest { |
| + public: |
| + BookmarkInstantExtendedTest() { |
| + chrome::search::EnableInstantExtendedAPIForTesting(); |
| + } |
| +}; |
|
sky
2013/02/12 22:29:11
private:DISALLOW...
sail
2013/02/12 22:52:03
Done.
|
| + |
| +// Verify that in instant extended mode the detached bookmark bar is visible on |
| +// the new tab page. |
| +TEST_F(BookmarkInstantExtendedTest, DetachedBookmarkBarOnNTP) { |
| + AddTab(browser(), GURL(chrome::kChromeUINewTabURL)); |
| + EXPECT_EQ(BookmarkBar::DETACHED, browser()->bookmark_bar_state()); |
| +} |