Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: webkit/tools/test_shell/test_shell_test.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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__
11 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ 11 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/base/window_open_disposition.h" 17 #include "ui/base/window_open_disposition.h"
18 #include "webkit/tools/test_shell/test_shell.h" 18 #include "webkit/tools/test_shell/test_shell.h"
19 19
20 class TestShellTest : public testing::Test { 20 class TestShellTest : public testing::Test {
21 protected: 21 protected:
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 base::FilePath& test_case_path,
24 const std::string& test_case); 24 const std::string& test_case);
25 25
26 virtual void SetUp() OVERRIDE; 26 virtual void SetUp() OVERRIDE;
27 virtual void TearDown() OVERRIDE; 27 virtual void TearDown() OVERRIDE;
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 protected: 32 protected:
33 // Location of SOURCE_ROOT/webkit/data/ 33 // Location of SOURCE_ROOT/webkit/data/
34 FilePath data_dir_; 34 base::FilePath data_dir_;
35 35
36 TestShell* test_shell_; 36 TestShell* test_shell_;
37 }; 37 };
38 38
39 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__ 39 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_TEST_H__
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_request_context.cc ('k') | webkit/tools/test_shell/test_shell_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698