summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/sandbox_uitests.cc
blob: f6483048b49386b4f3c2b7d20d5f6cc5f80590e6 (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
// 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 <windows.h>
#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_.AppendSwitchWithValue(switches::kTestSandbox,
                                            L"security_tests.dll");
  }
};

// Verifies that chrome is running properly.
TEST_F(SandboxTest, ExecuteDll) {
  EXPECT_EQ(1, GetTabCount());
}