blob: 852d8e8bf6359f979d78ed366b0de09987bc3438 [file] [log] [blame]
// Copyright (c) 2011 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.
* Base test class used by all test shell tests. Provides boiler plate
* code to create and destroy a new test shell for each gTest test.
#include <string>
#include "base/file_path.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/glue/window_open_disposition.h"
#include "webkit/tools/test_shell/test_shell.h"
class TestShellTest : public testing::Test {
// Returns the path "test_case_path/test_case".
GURL GetTestURL(const FilePath& test_case_path,
const std::string& test_case);
virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
// Don't refactor away; some unittests override this!
virtual void CreateEmptyWindow();
static const char* const kJavascriptDelayExitScript;
// Location of SOURCE_ROOT/webkit/data/
FilePath data_dir_;
TestShell* test_shell_;