// 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