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

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

Issue 135633002: Don't populate URL data in WebDropData when dragging files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Blink style enums 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_unittest.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_win_unittest.cc
diff --git a/ui/base/dragdrop/os_exchange_data_win_unittest.cc b/ui/base/dragdrop/os_exchange_data_win_unittest.cc
index e73db84274794fd42c53361843e157471d39fabc..65066e16ce17001e5ca40b9033250e5af551d3bf 100644
--- a/ui/base/dragdrop/os_exchange_data_win_unittest.cc
+++ b/ui/base/dragdrop/os_exchange_data_win_unittest.cc
@@ -65,7 +65,8 @@ TEST(OSExchangeDataWinTest, StringDataWritingViaCOM) {
EXPECT_TRUE(data2.HasURL());
GURL url_from_data;
std::wstring title;
- EXPECT_TRUE(data2.GetURLAndTitle(&url_from_data, &title));
+ EXPECT_TRUE(data2.GetURLAndTitle(
+ OSExchangeData::CONVERT_FILENAMES, &url_from_data, &title));
GURL reference_url(input);
EXPECT_EQ(reference_url.spec(), url_from_data.spec());
}
@@ -116,7 +117,8 @@ TEST(OSExchangeDataWinTest, RemoveData) {
EXPECT_TRUE(data2.HasURL());
GURL url_from_data;
std::wstring title;
- EXPECT_TRUE(data2.GetURLAndTitle(&url_from_data, &title));
+ EXPECT_TRUE(data2.GetURLAndTitle(
+ OSExchangeData::CONVERT_FILENAMES, &url_from_data, &title));
EXPECT_EQ(GURL(input2).spec(), url_from_data.spec());
}
@@ -348,7 +350,8 @@ TEST(OSExchangeDataWinTest, ProvideURLForPlainTextURL) {
ASSERT_TRUE(data2.HasURL());
GURL read_url;
std::wstring title;
- EXPECT_TRUE(data2.GetURLAndTitle(&read_url, &title));
+ EXPECT_TRUE(data2.GetURLAndTitle(
+ OSExchangeData::CONVERT_FILENAMES, &read_url, &title));
EXPECT_EQ(GURL("http://google.com"), read_url);
}
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698