diff options
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/plugins/test/plugin_geturl_test.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/glue/plugins/test/plugin_geturl_test.cc b/webkit/glue/plugins/test/plugin_geturl_test.cc index fab83c9..f321b4b 100644 --- a/webkit/glue/plugins/test/plugin_geturl_test.cc +++ b/webkit/glue/plugins/test/plugin_geturl_test.cc @@ -155,13 +155,20 @@ NPError PluginGetURLTest::NewStream(NPMIMEType type, NPStream* stream, break; } + // TODO(evanm): use the net:: functions to convert file:// URLs to + // on-disk file paths. But it probably doesn't actually matter in + // this test. + #if defined(OS_WIN) filename = filename.substr(8); // remove "file:///" + // Assume an ASCII path on Windows. + FilePath path = FilePath(ASCIIToWide(filename)); #else filename = filename.substr(7); // remove "file://" + FilePath path = FilePath(filename); #endif - test_file_ = file_util::OpenFile(filename, "r"); + test_file_ = file_util::OpenFile(path, "r"); if (!test_file_) { SetError("Could not open source file"); } |