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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_contacts_service_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "_comment": "This feed contains a contact with a missing photo.",
3 "encoding": "UTF-8", 2 "encoding": "UTF-8",
4 "feed": { 3 "feed": {
5 "author": [ { 4 "author": [ {
6 "email": { 5 "email": {
7 "$t": "test.user@gmail.com" 6 "$t": "test.user@gmail.com"
8 }, 7 },
9 "name": { 8 "name": {
10 "$t": "Test User" 9 "$t": "Test User"
11 } 10 }
12 } ], 11 } ],
13 "category": [ { 12 "category": [ {
14 "scheme": "http://schemas.google.com/g/2005#kind", 13 "scheme": "http://schemas.google.com/g/2005#kind",
15 "term": "http://schemas.google.com/contact/2008#contact" 14 "term": "http://schemas.google.com/contact/2008#contact"
16 } ], 15 } ],
17 "entry": [ { 16 "entry": [ {
18 "app$edited": { 17 "app$edited": {
19 "$t": "2012-06-04T15:53:36.023Z", 18 "$t": "2012-06-04T15:53:36.023Z",
20 "xmlns$app": "http://www.w3.org/2007/app" 19 "xmlns$app": "http://www.w3.org/2007/app"
21 }, 20 },
22 "category": [ { 21 "category": [ {
23 "scheme": "http://schemas.google.com/g/2005#kind", 22 "scheme": "http://schemas.google.com/g/2005#kind",
24 "term": "http://schemas.google.com/contact/2008#contact" 23 "term": "http://schemas.google.com/contact/2008#contact"
25 } ], 24 } ],
26 "gContact$groupMembershipInfo": [ { 25 "gContact$groupMembershipInfo": [ {
27 "deleted": "false", 26 "deleted": "false",
28 "href": "http://www.google.com/m8/feeds/groups/joe.contact%40gmail.c om/base/6" 27 "href": "http://www.google.com/m8/feeds/groups/test.user%40gmail.com /base/6"
29 } ],
30 "gContact$website": [ {
31 "href": "http://www.google.com/",
32 "rel": "profile"
33 } ],
34 "gd$email": [ {
35 "address": "joe.contact@gmail.com",
36 "primary": "true",
37 "rel": "http://schemas.google.com/g/2005#other"
38 } ], 28 } ],
39 "gd$etag": "\"R345ezVSLit7I2A9WhVbGE8PRQU.\"", 29 "gd$etag": "\"R345ezVSLit7I2A9WhVbGE8PRQU.\"",
40 "gd$name": { 30 "gd$name": {
41 "gd$familyName": { 31 "gd$familyName": {
42 "$t": "Contact" 32 "$t": "\u5B89\u85E4"
43 }, 33 },
44 "gd$fullName": { 34 "gd$fullName": {
45 "$t": "Joe Contact" 35 "$t": "\u5B89\u85E4 \u5FE0\u96C4"
46 }, 36 },
47 "gd$givenName": { 37 "gd$givenName": {
48 "$t": "Joe" 38 "$t": "\u5FE0\u96C4"
49 } 39 }
50 }, 40 },
51 "gd$structuredPostalAddress": [ {
52 "gd$city": {
53 "$t": "San Francisco"
54 },
55 "gd$formattedAddress": {
56 "$t": "345 Spear St\nSan Francisco CA 94105"
57 },
58 "gd$postcode": {
59 "$t": "94105"
60 },
61 "gd$region": {
62 "$t": "CA"
63 },
64 "gd$street": {
65 "$t": "345 Spear St"
66 },
67 "rel": "http://schemas.google.com/g/2005#home"
68 } ],
69 "id": { 41 "id": {
70 "$t": 42 "$t":
71 "http://example.com/1" 43 "http://example.com/1"
72 }, 44 },
73 "link": [ {
74 "href": "https://example.com/nonexistent_file.png",
75 "rel": "http://schemas.google.com/contacts/2008/rel#photo",
76 "gd$etag": "\"JyYuJkIbWit7I2BpLHxUTDpzI1FGf2IjUjc.\"",
77 "type": "image/*"
78 }, {
79 "href":
80 "https://example.com/1",
81 "rel": "self",
82 "type": "application/atom+xml"
83 }, {
84 "href":
85 "https://example.com/1",
86 "rel": "edit",
87 "type": "application/atom+xml"
88 } ],
89 "title": { 45 "title": {
90 "$t": "Joseph Contact" 46 "$t": "\u5B89\u85E4 \u5FE0\u96C4"
91 }, 47 },
92 "updated": { 48 "updated": {
93 "$t": "2012-06-04T15:53:36.023Z" 49 "$t": "2012-06-04T15:53:36.023Z"
94 } 50 }
51 }, {
52 "app$edited": {
53 "$t": "2012-06-21T16:20:13.208Z",
54 "xmlns$app": "http://www.w3.org/2007/app"
55 },
56 "category": [ {
57 "scheme": "http://schemas.google.com/g/2005#kind",
58 "term": "http://schemas.google.com/contact/2008#contact"
59 } ],
60 "gContact$groupMembershipInfo": [ {
61 "deleted": "false",
62 "href": "http://www.google.com/m8/feeds/groups/test.user%40gmail.com /base/6"
63 } ],
64 "gd$etag": "\"Qnw7cDVSLCt7I2A9WhJTEkQPQQU.\"",
65 "gd$name": {
66 "gd$familyName": {
67 "$t": "Smith\uFEFF"
68 },
69 "gd$fullName": {
70 "$t": "\uFEFFBob\uFEFF\uFEFF Smith\uFEFF"
71 },
72 "gd$givenName": {
73 "$t": "\uFEFFBob\uFEFF\uFEFF"
74 }
75 },
76 "id": {
77 "$t": "http://example.com/2"
78 },
79 "title": {
80 "$t": "\uFEFFBob\uFEFF\uFEFF Smith\uFEFF"
81 },
82 "updated": {
83 "$t": "2012-06-21T16:20:13.208Z"
84 }
95 } ], 85 } ],
96 "gd$etag": "W/\"CEUHSXg8fSt7I2A9WhJSEEw.\"", 86 "gd$etag": "W/\"CEUHSXg8fSt7I2A9WhJSEEw.\"",
97 "generator": { 87 "generator": {
98 "$t": "Contacts", 88 "$t": "Contacts",
99 "uri": "http://www.google.com/m8/feeds", 89 "uri": "http://www.google.com/m8/feeds",
100 "version": "1.0" 90 "version": "1.0"
101 }, 91 },
102 "id": { 92 "id": {
103 "$t": "test.user@gmail.com" 93 "$t": "test.user@gmail.com"
104 }, 94 },
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 "$t": "2012-06-29T23:23:58.675Z" 129 "$t": "2012-06-29T23:23:58.675Z"
140 }, 130 },
141 "xmlns": "http://www.w3.org/2005/Atom", 131 "xmlns": "http://www.w3.org/2005/Atom",
142 "xmlns$batch": "http://schemas.google.com/gdata/batch", 132 "xmlns$batch": "http://schemas.google.com/gdata/batch",
143 "xmlns$gContact": "http://schemas.google.com/contact/2008", 133 "xmlns$gContact": "http://schemas.google.com/contact/2008",
144 "xmlns$gd": "http://schemas.google.com/g/2005", 134 "xmlns$gd": "http://schemas.google.com/g/2005",
145 "xmlns$openSearch": "http://a9.com/-/spec/opensearch/1.1/" 135 "xmlns$openSearch": "http://a9.com/-/spec/opensearch/1.1/"
146 }, 136 },
147 "version": "1.0" 137 "version": "1.0"
148 } 138 }
OLDNEW
« 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