blob: 58647a52cf73896c77e4477fb8c0148b417ccc84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2011 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 "base/command_line.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/in_process_browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
class PanelBrowserTest : public InProcessBrowserTest {
public:
PanelBrowserTest() : InProcessBrowserTest() { }
virtual void SetUpCommandLine(CommandLine* command_line) {
command_line->AppendSwitch(switches::kEnablePanels);
}
};
// Panel is now only supported on windows.
#if defined(OS_WIN)
IN_PROC_BROWSER_TEST_F(PanelBrowserTest, CreatePanel) {
Browser* panel = Browser::CreateForApp("", gfx::Size(),
browser()->profile(), true);
EXPECT_EQ(Browser::TYPE_APP_PANEL, panel->type());
panel->window()->Show();
panel->window()->Close();
}
#endif
|