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

Side by Side Diff: chrome/browser/extensions/window_open_interactive_apitest.cc

Issue 2263863002: Remove implementation of Panels on OSes other than ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/common/chrome_switches.h"
9
10 class WindowOpenPanelTest : public ExtensionApiTest {
11 void SetUpCommandLine(base::CommandLine* command_line) override {
12 ExtensionApiTest::SetUpCommandLine(command_line);
13 command_line->AppendSwitch(switches::kEnablePanels);
14 }
15 };
16 8
17 // http://crbug.com/253417 for NDEBUG 9 // http://crbug.com/253417 for NDEBUG
18 #if (defined(OS_WIN) || defined(OS_MACOSX)) && defined(NDEBUG) 10 #if (defined(OS_WIN) || defined(OS_MACOSX)) && defined(NDEBUG)
19 // Focus test fails if there is no window manager on Linux. 11 // Focus test fails if there is no window manager on Linux.
20 IN_PROC_BROWSER_TEST_F(WindowOpenPanelTest, WindowOpenFocus) { 12 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WindowOpenFocus) {
21 ASSERT_TRUE(RunExtensionTest("window_open/focus")) << message_; 13 ASSERT_TRUE(RunExtensionTest("window_open/focus")) << message_;
22 } 14 }
23 #endif 15 #endif
OLDNEW
« no previous file with comments | « chrome/browser/extensions/window_open_apitest.cc ('k') | chrome/browser/task_manager/providers/web_contents/panel_tag.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698