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

Unified Diff: ui/base/dragdrop/os_exchange_data_unittest.cc

Issue 137783015: Merge 244538 "Don't populate URL data in WebDropData when draggi..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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 | « ui/base/dragdrop/os_exchange_data_provider_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/os_exchange_data_unittest.cc
===================================================================
--- ui/base/dragdrop/os_exchange_data_unittest.cc (revision 245050)
+++ ui/base/dragdrop/os_exchange_data_unittest.cc (working copy)
@@ -29,7 +29,8 @@
std::string url_spec = "http://www.goats.com/";
GURL url(url_spec);
string16 title;
- EXPECT_FALSE(data2.GetURLAndTitle(&url, &title));
+ EXPECT_FALSE(
+ data2.GetURLAndTitle(OSExchangeData::CONVERT_FILENAMES, &url, &title));
// No URLs in |data|, so url should be untouched.
EXPECT_EQ(url_spec, url.spec());
}
@@ -47,7 +48,8 @@
// URL spec and title should match
GURL output_url;
string16 output_title;
- EXPECT_TRUE(data2.GetURLAndTitle(&output_url, &output_title));
+ EXPECT_TRUE(data2.GetURLAndTitle(
+ OSExchangeData::CONVERT_FILENAMES, &output_url, &output_title));
EXPECT_EQ(url_spec, output_url.spec());
EXPECT_EQ(url_title, output_title);
string16 output_string;
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698