diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 19:19:30 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 19:19:30 +0000 |
commit | 2e686f5ebeaf5bcba2b22ccba8c6b1d894fc51fd (patch) | |
tree | ab29c314b2768d8f571a620479c74d94b3cc1260 /chrome/test/security_tests | |
parent | d82ac82b54aa5ffbeba1f50057ad0a7afb1f5e72 (diff) | |
download | chromium_src-2e686f5ebeaf5bcba2b22ccba8c6b1d894fc51fd.zip chromium_src-2e686f5ebeaf5bcba2b22ccba8c6b1d894fc51fd.tar.gz chromium_src-2e686f5ebeaf5bcba2b22ccba8c6b1d894fc51fd.tar.bz2 |
Convert sandbox ui_test to a browser_test.
BUG=121574
Review URL: https://chromiumcodereview.appspot.com/10166008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133238 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/security_tests')
-rw-r--r-- | chrome/test/security_tests/sandbox_browsertest.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chrome/test/security_tests/sandbox_browsertest.cc b/chrome/test/security_tests/sandbox_browsertest.cc new file mode 100644 index 0000000..6305a8e --- /dev/null +++ b/chrome/test/security_tests/sandbox_browsertest.cc @@ -0,0 +1,26 @@ +// Copyright (c) 2006-2008 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/ui/browser.h" +#include "chrome/common/chrome_switches.h" +#include "chrome/test/base/in_process_browser_test.h" + +class SandboxTest : public InProcessBrowserTest { + protected: + SandboxTest() : InProcessBrowserTest() {} + + virtual void SetUpCommandLine(CommandLine* command_line) { + command_line->AppendSwitchASCII(switches::kTestSandbox, + "security_tests.dll"); + } +}; + +// Need a cross-platform test library: http://crbug.com/45771 +#if defined(OS_WIN) +// Verifies that chrome is running properly. +IN_PROC_BROWSER_TEST_F(SandboxTest, ExecuteDll) { + EXPECT_EQ(1, browser()->tab_count()); +} +#endif |