summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/sandbox_uitests.cc
blob: e65abfc70a52aa1c067af52f2e16de8ae9cc7df3 (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
// 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 <string>

#include "base/command_line.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/ui/ui_test.h"
#include "testing/gtest/include/gtest/gtest.h"

class SandboxTest : public UITest {
 protected:
  // Launches chrome with the --test-sandbox=security_tests.dll flag.
  SandboxTest() : UITest() {
    launch_arguments_.AppendSwitchASCII(switches::kTestSandbox,
                                        "security_tests.dll");
  }
};

#if !defined(OS_WIN)
// Need a cross-platform test library: http://crbug.com/45771
#define ExecuteDll DISABLED_ExecuteDll
#endif
// Verifies that chrome is running properly.
TEST_F(SandboxTest, ExecuteDll) {
  EXPECT_EQ(1, GetTabCount());
}