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

Unified Diff: content/browser/web_contents/web_drag_dest_mac_unittest.mm

Issue 1128173004: Fix a bug in web_drag_dest_mac_unittest.mm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_drag_dest_mac_unittest.mm
diff --git a/content/browser/web_contents/web_drag_dest_mac_unittest.mm b/content/browser/web_contents/web_drag_dest_mac_unittest.mm
index 3564ca80e427d0a104a77954140721e5d0a8945e..efa6452e267c80662ad52394e77798995ac20a68 100644
--- a/content/browser/web_contents/web_drag_dest_mac_unittest.mm
+++ b/content/browser/web_contents/web_drag_dest_mac_unittest.mm
@@ -140,9 +140,9 @@ TEST_F(WebDragDestTest, URL) {
&result_url, &result_title, pboard, NO));
EXPECT_TRUE(ui::PopulateURLAndTitleFromPasteboard(
&result_url, &result_title, pboard, YES));
- EXPECT_EQ(base::mac::IsOSYosemiteOrLater() ? "file:///bin/sh"
- : "file://localhost/bin/sh",
- result_url.spec());
+ base::scoped_nsobject<NSURL> expected_output(
+ [[NSURL alloc] initFileURLWithPath:url isDirectory:NO]);
+ EXPECT_EQ([[expected_output absoluteString] UTF8String], result_url.spec());
EXPECT_EQ("sh", base::UTF16ToUTF8(result_title));
[pboard releaseGlobally];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698