summaryrefslogtreecommitdiffstats
path: root/content/shell/webkit_test_controller.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-20 11:26:19 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-20 11:26:19 +0000
commit0c5f2224e5533fbfc9a3d41ea1708e3750e641fe (patch)
treec385b806c9a85a99d6aabce578fdd0c0694273ab /content/shell/webkit_test_controller.h
parent79129b100f15da04f5daed58b60017879c123a2f (diff)
downloadchromium_src-0c5f2224e5533fbfc9a3d41ea1708e3750e641fe.zip
chromium_src-0c5f2224e5533fbfc9a3d41ea1708e3750e641fe.tar.gz
chromium_src-0c5f2224e5533fbfc9a3d41ea1708e3750e641fe.tar.bz2
[content shell] implement pathToLocalResource
On windows, this method replaces a /tmp/ prefix with the actual temp path. Otherwise, it removes superfluous leading slashes from file: URLs and passes the path on the rewriteLayoutTestURL BUG=111316 R=thakis@chromium.org TEST=http/tests/plugins/post-url-file.html passes Review URL: https://chromiumcodereview.appspot.com/12282041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/webkit_test_controller.h')
-rw-r--r--content/shell/webkit_test_controller.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/shell/webkit_test_controller.h b/content/shell/webkit_test_controller.h
index b544e7d..619c7da 100644
--- a/content/shell/webkit_test_controller.h
+++ b/content/shell/webkit_test_controller.h
@@ -88,6 +88,8 @@ class WebKitTestController : public base::NonThreadSafe,
// True if the controller was reset successfully.
bool ResetAfterLayoutTest();
+ void SetTempPath(const base::FilePath& temp_path);
+
void RendererUnresponsive();
void OverrideWebkitPrefs(webkit_glue::WebPreferences* prefs);
@@ -133,6 +135,7 @@ class WebKitTestController : public base::NonThreadSafe,
scoped_ptr<WebKitTestResultPrinter> printer_;
base::FilePath current_working_directory_;
+ base::FilePath temp_path_;
Shell* main_window_;