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

Unified Diff: content/browser/renderer_host/render_view_host_unittest.cc

Issue 10536200: Manage IsolatedContext with reference counts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win test fix Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_unittest.cc
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc
index c29e8f074c0b2b29b24d88f1d5d0b972f7242cd6..f6351c8f492167cec7f1b6633194571da175c298 100644
--- a/content/browser/renderer_host/render_view_host_unittest.cc
+++ b/content/browser/renderer_host/render_view_host_unittest.cc
@@ -155,9 +155,11 @@ TEST_F(RenderViewHostTest, DragEnteredFileURLsStillBlocked) {
WebDropData dropped_data;
gfx::Point client_point;
gfx::Point screen_point;
- FilePath highlighted_file_path(FILE_PATH_LITERAL("/tmp/foo.html"));
- FilePath dragged_file_path(FILE_PATH_LITERAL("/tmp/image.jpg"));
- FilePath sensitive_file_path(FILE_PATH_LITERAL("/etc/passwd"));
+ // We use "//foo/bar" path (rather than "/foo/bar") since dragged paths are
+ // expected to be absolute on any platforms.
+ FilePath highlighted_file_path(FILE_PATH_LITERAL("//tmp/foo.html"));
+ FilePath dragged_file_path(FILE_PATH_LITERAL("//tmp/image.jpg"));
+ FilePath sensitive_file_path(FILE_PATH_LITERAL("//etc/passwd"));
GURL highlighted_file_url = net::FilePathToFileURL(highlighted_file_path);
GURL dragged_file_url = net::FilePathToFileURL(dragged_file_path);
GURL sensitive_file_url = net::FilePathToFileURL(sensitive_file_path);

Powered by Google App Engine
This is Rietveld 408576698