OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * Base test class used by all test shell tests. Provides boiler plate | |
7 * code to create and destroy a new test shell for each gTest test. | |
8 */ | |
9 | |
10 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ | |
11 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ | |
12 | |
13 #include <string> | |
14 | |
15 #include "base/files/file_path.h" | |
16 #include "testing/gtest/include/gtest/gtest.h" | |
17 #include "ui/base/window_open_disposition.h" | |
18 #include "webkit/tools/test_shell/test_shell.h" | |
19 | |
20 class TestShellTest : public testing::Test { | |
21 protected: | |
22 // Returns the path "test_case_path/test_case". | |
23 GURL GetTestURL(const base::FilePath& test_case_path, | |
24 const std::string& test_case); | |
25 | |
26 virtual void SetUp() OVERRIDE; | |
27 virtual void TearDown() OVERRIDE; | |
28 | |
29 // Don't refactor away; some unittests override this! | |
30 virtual void CreateEmptyWindow(); | |
31 | |
32 protected: | |
33 // Location of SOURCE_ROOT/webkit/data/ | |
34 base::FilePath data_dir_; | |
35 | |
36 TestShell* test_shell_; | |
37 }; | |
38 | |
39 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ | |
OLD | NEW |