summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-19 04:10:13 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-19 04:10:13 +0000
commitc30bda26c225a049e105db1c1164833032c0682f (patch)
treec50de680ba0da6415d9710ef90dbd8fef3f98501 /chrome/test
parent494eb70be9ba547f417387fdde551c2ca785904f (diff)
downloadchromium_src-c30bda26c225a049e105db1c1164833032c0682f.zip
chromium_src-c30bda26c225a049e105db1c1164833032c0682f.tar.gz
chromium_src-c30bda26c225a049e105db1c1164833032c0682f.tar.bz2
app_list: Drive app integration.
- DriveAppProvider to map Drive apps to chrome apps or local url apps; - DriveAppMapping to track the mapped chrome apps; - DriveServiceBridge to wrap DriveAPIService and DriveAppRegistry to provide the user Drive apps info; - Put feature behind "--enable-drive-apps-in-app-list"; BUG=358791,345066 TEST=DriveAppProviderTest.*:DriveAppMappingTest.* Review URL: https://codereview.chromium.org/308003005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/drive/applist_app_template.json36
-rw-r--r--chrome/test/data/drive/applist_empty.json6
2 files changed, 42 insertions, 0 deletions
diff --git a/chrome/test/data/drive/applist_app_template.json b/chrome/test/data/drive/applist_app_template.json
new file mode 100644
index 0000000..3ce970b
--- /dev/null
+++ b/chrome/test/data/drive/applist_app_template.json
@@ -0,0 +1,36 @@
+{
+ "kind": "drive#app",
+ "id": "$AppId",
+ "name": "$AppName",
+ "objectType": "",
+ "supportsCreate": false,
+ "supportsImport": false,
+ "installed": true,
+ "authorized": false,
+ "removable": false,
+ "productUrl": "https://chrome.google.com/webstore/detail/$ProductId",
+ "productId": "$ProductId",
+ "createUrl": "$CreateUrl",
+ "primaryMimeTypes": [
+ "image/jpeg",
+ "image/png",
+ "application/vnd.google-apps.drive-sdk.876543210000"
+ ],
+ "icons": [
+ {
+ "category": "application",
+ "size": 10,
+ "iconUrl": "http://www.example.com/10.png"
+ },
+ {
+ "category": "document",
+ "size": 10,
+ "iconUrl": "http://www.example.com/d10.png"
+ },
+ {
+ "category": "documentShared",
+ "size": 10,
+ "iconUrl": "http://www.example.com/ds10.png"
+ }
+ ]
+}
diff --git a/chrome/test/data/drive/applist_empty.json b/chrome/test/data/drive/applist_empty.json
new file mode 100644
index 0000000..2dcd51b
--- /dev/null
+++ b/chrome/test/data/drive/applist_empty.json
@@ -0,0 +1,6 @@
+{
+ "kind": "drive#appList",
+ "etag": "\"Jm4BaSnCWNND-noZsHINRqj4ABC/tuqRBw0lvjUdPtc_2msA1tN4XYZ\"",
+ "selfLink": "https://www.googleapis.com/drive/v2/apps",
+ "items": []
+}