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

Unified Diff: chrome/test/data/chromeos/drive/changelist.json

Issue 10829139: Add parsers for Drive v2 Change/ChangeList/Parents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added class comments. Created 8 years, 5 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
Index: chrome/test/data/chromeos/drive/changelist.json
diff --git a/chrome/test/data/chromeos/drive/changelist.json b/chrome/test/data/chromeos/drive/changelist.json
new file mode 100644
index 0000000000000000000000000000000000000000..7717eddec32baf1bd052c5ce8539490eaac8c3c7
--- /dev/null
+++ b/chrome/test/data/chromeos/drive/changelist.json
@@ -0,0 +1,176 @@
+{
+ "kind": "drive#changeList",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/BWbu_eylt5f_aGtCN6mGRv9hABC\"",
+ "selfLink": "https://www.googleapis.com/drive/v2/changes",
+ "nextPageToken": "8929",
+ "nextLink": "https://www.googleapis.com/drive/v2/changes?pageToken=8929",
+ "largestChangeId": "13664",
+ "items": [
+ {
+ "kind": "drive#change",
+ "id": "8421",
+ "fileId": "1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC",
+ "selfLink": "https://www.googleapis.com/drive/v2/changes/8421",
+ "deleted": false,
+ "file": {
+ "kind": "drive#file",
+ "id": "1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/MTM0MzM2NDg1MTAABC\"",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC",
+ "alternateLink": "https://docs.google.com/a/chromium.org/document/d/1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC/edit",
+ "embedLink": "https://docs.google.com/a/chromium.org/document/d/1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC/preview",
+ "thumbnailLink": "https://docs.google.com/feeds/vt?gd=true&id=1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC&v=3&s=AMedNnoAAAAAUBo617fje6DQnYkylcdbcGp8aXpFiXYZ&sz=s220",
+ "title": "Test Google Document",
+ "mimeType": "application/vnd.google-apps.document",
+ "labels": {
+ "starred": false,
+ "hidden": false,
+ "trashed": false,
+ "restricted": false,
+ "viewed": true
+ },
+ "createdDate": "2012-07-27T04:54:09.686Z",
+ "modifiedDate": "2012-07-27T04:54:11.030Z",
+ "modifiedByMeDate": "2012-07-27T04:54:11.030Z",
+ "lastViewedByMeDate": "2012-07-27T04:54:11.030Z",
+ "parents": [
+ {
+ "kind": "drive#parentReference",
+ "id": "0AIv7G8yEYAWHUk9ABC",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC/parents/0AIv7G8yEYAWHUk9ABC",
+ "parentLink": "https://www.googleapis.com/drive/v2/files/0AIv7G8yEYAWHUk9ABC",
+ "isRoot": true
+ }
+ ],
+ "exportLinks": {
+ "application/msword": "https://docs.google.com/feeds/download/documents/export/Export?id=1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC&exportFormat=doc",
+ "text/html": "https://docs.google.com/feeds/download/documents/export/Export?id=1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC&exportFormat=html",
+ "application/pdf": "https://docs.google.com/feeds/download/documents/export/Export?id=1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC&exportFormat=pdf"
+ },
+ "userPermission": {
+ "kind": "drive#permission",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/ufh4Gu_RoDI23a1Nr8tDm1yJXYZ\"",
+ "id": "me",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/1Pc8jzfU1ErbN_eucMMqdqzY3eBm0v8sxXm_1CtLxABC/permissions/me",
+ "role": "owner",
+ "type": "user"
+ },
+ "quotaBytesUsed": "0",
+ "ownerNames": [
+ "Test User"
+ ],
+ "lastModifyingUserName": "Test User",
+ "editable": true,
+ "writersCanShare": true
+ }
+ },
+ {
+ "kind": "drive#change",
+ "id": "8424",
+ "fileId": "0B4v7G8yEYAWHUmRrU2lMS2hLABC",
+ "selfLink": "https://www.googleapis.com/drive/v2/changes/8424",
+ "deleted": false,
+ "file": {
+ "kind": "drive#file",
+ "id": "0B4v7G8yEYAWHUmRrU2lMS2hLABC",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/MTM0MzM2NzgwMDIABC\"",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/0B4v7G8yEYAWHUmRrU2lMS2hLABC",
+ "webContentLink": "https://docs.google.com/a/chromium.org/uc?id=0B4v7G8yEYAWHUmRrU2lMS2hLABC&export=download",
+ "alternateLink": "https://docs.google.com/a/chromium.org/file/d/0B4v7G8yEYAWHUmRrU2lMS2hLABC/edit",
+ "title": "My first file data",
+ "mimeType": "application/octet-stream",
+ "labels": {
+ "starred": false,
+ "hidden": false,
+ "trashed": false,
+ "restricted": false,
+ "viewed": true
+ },
+ "createdDate": "2012-07-24T08:51:16.570Z",
+ "modifiedDate": "2012-07-27T05:43:20.269Z",
+ "modifiedByMeDate": "2012-07-27T05:43:20.269Z",
+ "lastViewedByMeDate": "2012-07-27T05:43:20.269Z",
+ "parents": [
+ {
+ "kind": "drive#parentReference",
+ "id": "0AIv7G8yEYAWHUk9ABC",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/0B4v7G8yEYAWHUmRrU2lMS2hLABC/parents/0AIv7G8yEYAWHUk9ABC",
+ "parentLink": "https://www.googleapis.com/drive/v2/files/0AIv7G8yEYAWHUk9ABC",
+ "isRoot": true
+ }
+ ],
+ "downloadUrl": "https://www.example.com/download",
+ "userPermission": {
+ "kind": "drive#permission",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/TZY6eNr9QBUIWHY-czo93820XYZ\"",
+ "id": "me",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/0B4v7G8yEYAWHUmRrU2lMS2hLABC/permissions/me",
+ "role": "owner",
+ "type": "user"
+ },
+ "originalFilename": "Untitled Document.ext",
+ "fileExtension": "ext",
+ "md5Checksum": "d41d8cd98f00b204e9800998ecf8427e",
+ "fileSize": "1000",
+ "quotaBytesUsed": "1000",
+ "ownerNames": [
+ "Test User"
+ ],
+ "lastModifyingUserName": "Takayoshi Kochi",
+ "editable": true,
+ "writersCanShare": true
+ }
+ },
+ {
+ "kind": "drive#change",
+ "id": "8429",
+ "fileId": "0B4v7G8yEYAWHYW1OcExsUVZLABC",
+ "selfLink": "https://www.googleapis.com/drive/v2/changes/8429",
+ "deleted": false,
+ "file": {
+ "kind": "drive#file",
+ "id": "0B4v7G8yEYAWHYW1OcExsUVZLABC",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/MTM0MzM2NDE5ODUABC\"",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/0B4v7G8yEYAWHYW1OcExsUVZLABC",
+ "alternateLink": "https://docs.google.com/a/chromium.org/folder/d/0B4v7G8yEYAWHYW1OcExsUVZLABC/edit",
+ "title": "TestFolder",
+ "mimeType": "application/vnd.google-apps.folder",
+ "labels": {
+ "starred": false,
+ "hidden": false,
+ "trashed": false,
+ "restricted": false,
+ "viewed": true
+ },
+ "createdDate": "2012-07-02T09:53:18.422Z",
+ "modifiedDate": "2012-07-27T04:43:18.507Z",
+ "modifiedByMeDate": "2012-07-27T04:43:18.507Z",
+ "lastViewedByMeDate": "2012-07-27T04:40:52.371Z",
+ "parents": [
+ {
+ "kind": "drive#parentReference",
+ "id": "0AIv7G8yEYAWHUk9ABC",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/0B4v7G8yEYAWHYW1OcExsUVZLABC/parents/0AIv7G8yEYAWHUk9ABC",
+ "parentLink": "https://www.googleapis.com/drive/v2/files/0AIv7G8yEYAWHUk9ABC",
+ "isRoot": true
+ }
+ ],
+ "userPermission": {
+ "kind": "drive#permission",
+ "etag": "\"Lp2bjAtLP341hvGmYHhxjYyBPJ8/ID_i9phaKU8rzxPcIL8yOWlMABC\"",
+ "id": "me",
+ "selfLink": "https://www.googleapis.com/drive/v2/files/0B4v7G8yEYAWHYW1OcExsUVZLABC/permissions/me",
+ "role": "owner",
+ "type": "user"
+ },
+ "quotaBytesUsed": "0",
+ "ownerNames": [
+ "Test User"
+ ],
+ "lastModifyingUserName": "Test User",
+ "editable": true,
+ "writersCanShare": true
+ }
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698