OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/browser/ui/tabs/tab_strip_model.h" | 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
9 #include "chrome/test/base/in_process_browser_test.h" | 9 #include "chrome/test/base/in_process_browser_test.h" |
10 | 10 |
11 class SandboxTest : public InProcessBrowserTest { | 11 class SandboxTest : public InProcessBrowserTest { |
12 protected: | 12 protected: |
13 SandboxTest() : InProcessBrowserTest() {} | 13 SandboxTest() : InProcessBrowserTest() {} |
14 | 14 |
15 virtual void SetUpCommandLine(CommandLine* command_line) { | 15 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
16 command_line->AppendSwitchASCII(switches::kTestSandbox, | 16 command_line->AppendSwitchASCII(switches::kTestSandbox, |
17 "security_tests.dll"); | 17 "security_tests.dll"); |
18 } | 18 } |
19 }; | 19 }; |
20 | 20 |
21 // Need a cross-platform test library: http://crbug.com/45771 | 21 // Need a cross-platform test library: http://crbug.com/45771 |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 // Verifies that chrome is running properly. | 23 // Verifies that chrome is running properly. |
24 IN_PROC_BROWSER_TEST_F(SandboxTest, ExecuteDll) { | 24 IN_PROC_BROWSER_TEST_F(SandboxTest, ExecuteDll) { |
25 EXPECT_EQ(1, browser()->tab_strip_model()->count()); | 25 EXPECT_EQ(1, browser()->tab_strip_model()->count()); |
26 } | 26 } |
27 #endif | 27 #endif |
OLD | NEW |