blob: 8b09a952573cc93fd57621f9933d49e717192075 (
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
|
// 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/browser/ui/tabs/tab_strip_model.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) OVERRIDE {
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_strip_model()->count());
}
#endif
|