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

Unified Diff: chrome/test/data/chromeos/gdata/contacts/feed_unicode.json

Issue 10829435: contacts: Strip Unicode byte order marks from strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use escaped bytes instead of utf-8 in test code Created 8 years, 4 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 | « chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/chromeos/gdata/contacts/feed_unicode.json
diff --git a/chrome/test/data/chromeos/gdata/contacts/feed_photo_404.json b/chrome/test/data/chromeos/gdata/contacts/feed_unicode.json
similarity index 65%
copy from chrome/test/data/chromeos/gdata/contacts/feed_photo_404.json
copy to chrome/test/data/chromeos/gdata/contacts/feed_unicode.json
index 1241405bfc564a717f0becf7223a0f8126b20c90..610cec381c0f5870f84a947f1156ba3512810ed0 100644
--- a/chrome/test/data/chromeos/gdata/contacts/feed_photo_404.json
+++ b/chrome/test/data/chromeos/gdata/contacts/feed_unicode.json
@@ -1,5 +1,4 @@
{
- "_comment": "This feed contains a contact with a missing photo.",
"encoding": "UTF-8",
"feed": {
"author": [ {
@@ -25,73 +24,64 @@
} ],
"gContact$groupMembershipInfo": [ {
"deleted": "false",
- "href": "http://www.google.com/m8/feeds/groups/joe.contact%40gmail.com/base/6"
- } ],
- "gContact$website": [ {
- "href": "http://www.google.com/",
- "rel": "profile"
- } ],
- "gd$email": [ {
- "address": "joe.contact@gmail.com",
- "primary": "true",
- "rel": "http://schemas.google.com/g/2005#other"
+ "href": "http://www.google.com/m8/feeds/groups/test.user%40gmail.com/base/6"
} ],
"gd$etag": "\"R345ezVSLit7I2A9WhVbGE8PRQU.\"",
"gd$name": {
"gd$familyName": {
- "$t": "Contact"
+ "$t": "\u5B89\u85E4"
},
"gd$fullName": {
- "$t": "Joe Contact"
+ "$t": "\u5B89\u85E4 \u5FE0\u96C4"
},
"gd$givenName": {
- "$t": "Joe"
+ "$t": "\u5FE0\u96C4"
}
},
- "gd$structuredPostalAddress": [ {
- "gd$city": {
- "$t": "San Francisco"
- },
- "gd$formattedAddress": {
- "$t": "345 Spear St\nSan Francisco CA 94105"
- },
- "gd$postcode": {
- "$t": "94105"
- },
- "gd$region": {
- "$t": "CA"
- },
- "gd$street": {
- "$t": "345 Spear St"
- },
- "rel": "http://schemas.google.com/g/2005#home"
- } ],
"id": {
"$t":
"http://example.com/1"
},
- "link": [ {
- "href": "https://example.com/nonexistent_file.png",
- "rel": "http://schemas.google.com/contacts/2008/rel#photo",
- "gd$etag": "\"JyYuJkIbWit7I2BpLHxUTDpzI1FGf2IjUjc.\"",
- "type": "image/*"
- }, {
- "href":
- "https://example.com/1",
- "rel": "self",
- "type": "application/atom+xml"
- }, {
- "href":
- "https://example.com/1",
- "rel": "edit",
- "type": "application/atom+xml"
- } ],
"title": {
- "$t": "Joseph Contact"
+ "$t": "\u5B89\u85E4 \u5FE0\u96C4"
},
"updated": {
"$t": "2012-06-04T15:53:36.023Z"
}
+ }, {
+ "app$edited": {
+ "$t": "2012-06-21T16:20:13.208Z",
+ "xmlns$app": "http://www.w3.org/2007/app"
+ },
+ "category": [ {
+ "scheme": "http://schemas.google.com/g/2005#kind",
+ "term": "http://schemas.google.com/contact/2008#contact"
+ } ],
+ "gContact$groupMembershipInfo": [ {
+ "deleted": "false",
+ "href": "http://www.google.com/m8/feeds/groups/test.user%40gmail.com/base/6"
+ } ],
+ "gd$etag": "\"Qnw7cDVSLCt7I2A9WhJTEkQPQQU.\"",
+ "gd$name": {
+ "gd$familyName": {
+ "$t": "Smith\uFEFF"
+ },
+ "gd$fullName": {
+ "$t": "\uFEFFBob\uFEFF\uFEFF Smith\uFEFF"
+ },
+ "gd$givenName": {
+ "$t": "\uFEFFBob\uFEFF\uFEFF"
+ }
+ },
+ "id": {
+ "$t": "http://example.com/2"
+ },
+ "title": {
+ "$t": "\uFEFFBob\uFEFF\uFEFF Smith\uFEFF"
+ },
+ "updated": {
+ "$t": "2012-06-21T16:20:13.208Z"
+ }
} ],
"gd$etag": "W/\"CEUHSXg8fSt7I2A9WhJSEEw.\"",
"generator": {
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698