EME test page application.
[chromium-blink-merge.git] / chrome / browser / extensions / chrome_ui_overrides_browsertest.cc
blob079b0a597fd4f911e593ec4c997edd2233513744
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
3 // found in the LICENSE file.
5 #include "base/command_line.h"
6 #include "chrome/app/chrome_command_ids.h"
7 #include "chrome/browser/extensions/extension_browsertest.h"
8 #include "chrome/browser/ui/browser_commands.h"
9 #include "chrome/common/url_constants.h"
11 class ChromeUIOverridesBrowserTest : public ExtensionBrowserTest {};
13 IN_PROC_BROWSER_TEST_F(ChromeUIOverridesBrowserTest,
14 BookmarkShortcutOverrides) {
15 // This functionality requires a feature flag.
16 CommandLine::ForCurrentProcess()->AppendSwitchASCII(
17 "--enable-override-bookmarks-ui",
18 "1");
20 ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII("bookmarks_ui")));
21 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_BOOKMARK_PAGE));
23 AddTabAtIndex(1,
24 GURL(chrome::kChromeUINewTabURL),
25 content::PAGE_TRANSITION_TYPED);
26 EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_BOOKMARK_ALL_TABS));