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 |
}; |