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

Unified Diff: net/base/data_url_unittest.cc

Issue 7039048: Fix data URL bug reported on Wikipedia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix data URL bug reported on Wikipedia Created 9 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 | « net/base/data_url.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/data_url_unittest.cc
===================================================================
--- net/base/data_url_unittest.cc (revision 86252)
+++ net/base/data_url_unittest.cc (working copy)
@@ -69,6 +69,12 @@
"kk",
"boo" },
+ { "data:foo/bar;charset=kk;baz=1,boo",
+ true,
+ "foo/bar",
+ "kk",
+ "boo" },
+
{ "data:text/html,%3Chtml%3E%3Cbody%3E%3Cb%3Ehello%20world"
"%3C%2Fb%3E%3C%2Fbody%3E%3C%2Fhtml%3E",
true,
@@ -136,6 +142,12 @@
"US-ASCII",
"AB \nC" },
+ { "data:text/plain;charset=utf-8;base64,SGVsbMO2",
+ true,
+ "text/plain",
+ "utf-8",
+ "Hell\xC3\xB6" },
+
// TODO(darin): add more interesting tests
};
« no previous file with comments | « net/base/data_url.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698