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

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

Issue 133053003: linux_aura: Fix dragging files into Dropbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify 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_aurax11.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_provider_aurax11_unittest.cc
diff --git a/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc b/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
index e3bf0e86569162d21d6ba3330683efa402b7b94f..cbb24d218ded33f596ce72aded8524226a2daab3 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
+++ b/ui/base/dragdrop/os_exchange_data_provider_aurax11_unittest.cc
@@ -96,4 +96,24 @@ TEST_F(OSExchangeDataProviderAuraX11Test, URIListWithBoth) {
EXPECT_EQ(kGoogleURL, out_gurl.spec());
}
+TEST_F(OSExchangeDataProviderAuraX11Test, OnlyStringURLIsUnfiltered) {
+ const base::string16 file_url = base::UTF8ToUTF16(kFileURL);
+ provider.SetString(file_url);
+
+ EXPECT_TRUE(provider.HasString());
+ EXPECT_FALSE(provider.HasURL());
+}
+
+TEST_F(OSExchangeDataProviderAuraX11Test, StringAndURIListFilterString) {
+ const base::string16 file_url = base::UTF8ToUTF16(kFileURL);
+ provider.SetString(file_url);
+ AddURLList(kFileURL);
+
+ EXPECT_FALSE(provider.HasString());
+ base::string16 out_str;
+ EXPECT_FALSE(provider.GetString(&out_str));
+
+ EXPECT_TRUE(provider.HasFile());
+}
+
} // namespace ui
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aurax11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698