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

Unified Diff: chrome/test/data/chromeos/gdata/delta_file_added_in_new_but_deleted_directory.json

Issue 10408071: gdata: Fix a crash when adding a new file to a new but deleted directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.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/delta_file_added_in_new_but_deleted_directory.json
diff --git a/chrome/test/data/chromeos/gdata/delta_file_added_in_new_but_deleted_directory.json b/chrome/test/data/chromeos/gdata/delta_file_added_in_new_but_deleted_directory.json
new file mode 100644
index 0000000000000000000000000000000000000000..31a5657a8269c5c1f09ac4adc81e74cd33b9b030
--- /dev/null
+++ b/chrome/test/data/chromeos/gdata/delta_file_added_in_new_but_deleted_directory.json
@@ -0,0 +1,252 @@
+{
+ "encoding": "UTF-8",
+ "feed": {
+ "author": [ {
+ "email": {
+ "$t": "tester@test.com"
+ },
+ "name": {
+ "$t": "tester"
+ }
+ } ],
+ "category": [ {
+ "label": "change",
+ "scheme": "http://schemas.google.com/g/2005#kind",
+ "term": "http://schemas.google.com/docs/2007#change"
+ } ],
+ "docs$largestChangestamp": {
+ "value": "16730"
+ },
+ "docs$quotaBytesUsedInTrash": {
+ "$t": "402724784"
+ },
+ "entry": [ {
+ "app$edited": {
+ "$t": "2012-04-10T22:50:55.965Z",
+ "xmlns$app": "http://www.w3.org/2007/app"
+ },
+ "author": [ {
+ "email": {
+ "$t": "tester@test.com"
+ },
+ "name": {
+ "$t": "tester"
+ }
+ } ],
+ "category": [ {
+ "label": "application/pdf",
+ "scheme": "http://schemas.google.com/g/2005#kind",
+ "term": "http://schemas.google.com/docs/2007#file"
+ }, {
+ "label": "viewed",
+ "scheme": "http://schemas.google.com/g/2005/labels",
+ "term": "http://schemas.google.com/g/2005/labels#viewed"
+ }, {
+ "label": "modified-by-me",
+ "scheme": "http://schemas.google.com/g/2005/labels",
+ "term": "http://schemas.google.com/g/2005/labels#modified-by-me"
+ } ],
+ "content": {
+ "src": "https://content_url",
+ "type": "text/html"
+ },
+ "docs$changestamp": {
+ "value": "16683"
+ },
+ "docs$modifiedByMeDate": {
+ "$t": "2012-04-10T22:50:55.797Z"
+ },
+ "docs$writersCanInvite": {
+ "value": "true"
+ },
+ "gd$etag": "\"WVAJThBcDyt7ImBk\"",
+ "gd$feedLink": [ {
+ "href": "https://feedLink",
+ "rel": "http://schemas.google.com/docs/2007/revisions"
+ } ],
+ "gd$lastModifiedBy": {
+ "email": {
+ "$t": "tester@test.com"
+ },
+ "name": {
+ "$t": "tester"
+ }
+ },
+ "gd$lastViewed": {
+ "$t": "2012-04-10T22:50:55.797Z"
+ },
+ "gd$quotaBytesUsed": {
+ "$t": "0"
+ },
+ "gd$resourceId": {
+ // To test a crash bug crbug.com/127495, This should start with
+ // "pdf:", not "file:", so that the entry is processed after the
+ // directory "folder:new_folder_resource_id" is deleted (i.e.
+ // entries in delta feeds are processed in the order of resource
+ // IDs sorted alphabetically)
+ "$t": "pdf:file_added_in_deleted_dir_id"
+ },
+ "id": {
+ "$t": "https://document%3Afile_added_in_new_dir_id"
+ },
+ "link": [ {
+ "href": "https://new_dir_self_link/folder:new_folder_resource_id",
+ "rel": "http://schemas.google.com/docs/2007#parent",
+ "title": "New Directory",
+ "type": "application/atom+xml"
+ }, {
+ "href": "https://alternate/document%3Afile_added_in_new_dir_id/edit",
+ "rel": "alternate",
+ "type": "text/html"
+ }, {
+ "href": "https://added_in_root.png",
+ "rel": "http://schemas.google.com/docs/2007#icon",
+ "type": "image/png"
+ }, {
+ "href": "https://",
+ "rel": "http://schemas.google.com/g/2005#resumable-edit-media",
+ "type": "application/atom+xml"
+ }, {
+ "href": "https://edit_url/document%3Afile_added_in_new_dir_id",
+ "rel": "edit",
+ "type": "application/atom+xml"
+ }, {
+ "href": "https://edit-media/document%3Afile_added_in_new_dir_id",
+ "rel": "edit-media",
+ "type": "text/html"
+ }, {
+ "href": "https://changes/16683",
+ "rel": "self",
+ "type": "application/atom+xml"
+ } ],
+ "published": {
+ "$t": "2012-04-10T22:50:53.237Z"
+ },
+ "title": {
+ "$t": "new_pdf_file.pdf"
+ },
+ "updated": {
+ "$t": "2012-04-10T22:50:55.797Z"
+ }
+ }, {
+ "app$edited": {
+ "$t": "2011-12-14T00:41:08.287Z",
+ "xmlns$app": "http://www.w3.org/2007/app"
+ },
+ "author": [ {
+ "email": {
+ "$t": "entry_tester@testing.com"
+ },
+ "name": {
+ "$t": "entry_tester"
+ }
+ } ],
+ "category": [ {
+ "label": "viewed",
+ "scheme": "http://schemas.google.com/g/2005/labels",
+ "term": "http://schemas.google.com/g/2005/labels#viewed"
+ }, {
+ "label": "folder",
+ "scheme": "http://schemas.google.com/g/2005#kind",
+ "term": "http://schemas.google.com/docs/2007#folder"
+ } ],
+ "content": {
+ "src": "https://1_folder_content_url",
+ "type": "application/atom+xml;type=feed"
+ },
+ "docs$writersCanInvite": {
+ "value": "true"
+ },
+ // Mark that the directory is deleted (i.e. moved to Trash).
+ "gd$deleted": {
+ },
+ "gd$etag": "\"HhMOFgcNHSt7ImBr\"",
+ "gd$feedLink": [ {
+ "href": "https://1_folder_feed_linkurl",
+ "rel": "http://schemas.google.com/acl/2007#accessControlList"
+ } ],
+ "gd$lastModifiedBy": {
+ "email": {
+ "$t": "tester@testing.com"
+ },
+ "name": {
+ "$t": "tester"
+ }
+ },
+ "gd$lastViewed": {
+ "$t": "2011-11-02T04:37:38.469Z"
+ },
+ "gd$quotaBytesUsed": {
+ "$t": "0"
+ },
+ "gd$resourceId": {
+ "$t": "folder:new_folder_resource_id"
+ },
+ "id": {
+ "$t": "https://new_folder_id"
+ },
+ "link": [ {
+ "href": "https://1_folder_alternate_link",
+ "rel": "alternate",
+ "type": "text/html"
+ }, {
+ "href": "https://1_folder_resumable_create_media_link",
+ "rel": "http://schemas.google.com/g/2005#resumable-create-media",
+ "type": "application/atom+xml"
+ }, {
+ "href": "https://new_dir_self_link/folder:new_folder_resource_id",
+ "rel": "self",
+ "type": "application/atom+xml"
+ }, {
+ "href": "https://new_dir_self_link/folder:new_folder_resource_id",
+ "rel": "edit",
+ "type": "application/atom+xml"
+ } ],
+ "published": {
+ "$t": "2010-11-07T05:03:54.719Z"
+ },
+ "title": {
+ "$t": "New Directory"
+ },
+ "updated": {
+ "$t": "2011-04-01T18:34:08.234Z"
+ }
+ } ],
+ "gd$etag": "W/\"AkYGSHc8eyt7ImA9WhVXEU0.\"",
+ "gd$quotaBytesTotal": {
+ "$t": "215822106624"
+ },
+ "gd$quotaBytesUsed": {
+ "$t": "416375123"
+ },
+ "id": {
+ "$t": "https://docs.google.com/feeds/default/private/changes"
+ },
+ "link": [ {
+ "href": "https://docs.google.com/feeds/default/private/changes",
+ "rel": "http://schemas.google.com/g/2005#feed",
+ "type": "application/atom+xml"
+ }, {
+ "href": "https://docs.google.com/feeds/default/private/changes?alt=json&start-index=16718&max-results=1000",
+ "rel": "self",
+ "type": "application/atom+xml"
+ } ],
+ "openSearch$startIndex": {
+ "$t": "16718"
+ },
+ "openSearch$totalResults": {
+ "$t": "16730"
+ },
+ "title": {
+ "$t": "Changed Documents - tester@test.com"
+ },
+ "updated": {
+ "$t": "2012-04-11T01:35:29.973Z"
+ },
+ "xmlns": "http://www.w3.org/2005/Atom",
+ "xmlns$docs": "http://schemas.google.com/docs/2007",
+ "xmlns$gd": "http://schemas.google.com/g/2005",
+ "xmlns$openSearch": "http://a9.com/-/spec/opensearch/1.1/"
+ },
+ "version": "1.0"
+}
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698