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

Side by Side Diff: chrome/test/security_tests/sandbox_browsertest.cc

Issue 10835019: Fix license headers in a number of files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix case Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 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 "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/common/chrome_switches.h" 7 #include "chrome/common/chrome_switches.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 9
10 class SandboxTest : public InProcessBrowserTest { 10 class SandboxTest : public InProcessBrowserTest {
11 protected: 11 protected:
12 SandboxTest() : InProcessBrowserTest() {} 12 SandboxTest() : InProcessBrowserTest() {}
13 13
14 virtual void SetUpCommandLine(CommandLine* command_line) { 14 virtual void SetUpCommandLine(CommandLine* command_line) {
15 command_line->AppendSwitchASCII(switches::kTestSandbox, 15 command_line->AppendSwitchASCII(switches::kTestSandbox,
16 "security_tests.dll"); 16 "security_tests.dll");
17 } 17 }
18 }; 18 };
19 19
20 // Need a cross-platform test library: http://crbug.com/45771 20 // Need a cross-platform test library: http://crbug.com/45771
21 #if defined(OS_WIN) 21 #if defined(OS_WIN)
22 // Verifies that chrome is running properly. 22 // Verifies that chrome is running properly.
23 IN_PROC_BROWSER_TEST_F(SandboxTest, ExecuteDll) { 23 IN_PROC_BROWSER_TEST_F(SandboxTest, ExecuteDll) {
24 EXPECT_EQ(1, browser()->tab_count()); 24 EXPECT_EQ(1, browser()->tab_count());
25 } 25 }
26 #endif 26 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698