OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Base test class used by all test shell tests. Provides boiler plate | 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. | 7 * code to create and destroy a new test shell for each gTest test. |
8 */ | 8 */ |
9 | 9 |
10 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ | 10 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Returns the path "test_case_path/test_case". | 22 // Returns the path "test_case_path/test_case". |
23 GURL GetTestURL(const FilePath& test_case_path, | 23 GURL GetTestURL(const FilePath& test_case_path, |
24 const std::string& test_case); | 24 const std::string& test_case); |
25 | 25 |
26 virtual void SetUp(); | 26 virtual void SetUp(); |
27 virtual void TearDown(); | 27 virtual void TearDown(); |
28 | 28 |
29 // Don't refactor away; some unittests override this! | 29 // Don't refactor away; some unittests override this! |
30 virtual void CreateEmptyWindow(); | 30 virtual void CreateEmptyWindow(); |
31 | 31 |
32 static const char* kJavascriptDelayExitScript; | 32 static const char* const kJavascriptDelayExitScript; |
33 | 33 |
34 protected: | 34 protected: |
35 // Location of SOURCE_ROOT/webkit/data/ | 35 // Location of SOURCE_ROOT/webkit/data/ |
36 FilePath data_dir_; | 36 FilePath data_dir_; |
37 | 37 |
38 TestShell* test_shell_; | 38 TestShell* test_shell_; |
39 }; | 39 }; |
40 | 40 |
41 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ | 41 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ |
OLD | NEW |