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

Side by Side Diff: chrome/test/data/extensions/api_test/instance_id/get_token/get_token.js

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to land Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function getTokenWithoutParameters() { 5 function getTokenWithoutParameters() {
6 try { 6 try {
7 chrome.instanceID.getToken(); 7 chrome.instanceID.getToken();
8 chrome.test.fail( 8 chrome.test.fail(
9 "Calling getToken without parameters should fail."); 9 "Calling getToken without parameters should fail.");
10 } catch (e) { 10 } catch (e) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 chrome.test.runTests([ 122 chrome.test.runTests([
123 getTokenWithoutParameters, 123 getTokenWithoutParameters,
124 getTokenWithoutCallback, 124 getTokenWithoutCallback,
125 getTokenWithoutAuthorizedEntity, 125 getTokenWithoutAuthorizedEntity,
126 getTokenWithInvalidAuthorizedEntity, 126 getTokenWithInvalidAuthorizedEntity,
127 getTokenWithoutScope, 127 getTokenWithoutScope,
128 getTokenWithInvalidScope, 128 getTokenWithInvalidScope,
129 getTokenWithInvalidOptionValue, 129 getTokenWithInvalidOptionValue,
130 // TODO(jianli): To be enabled when GetToken is implemented. 130 getTokenWithoutOptions,
131 //getTokenWithoutOptions, 131 getTokenWithValidOptions,
132 //getTokenWithValidOptions,
133 ]); 132 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/instance_id/delete_token/delete_token.js ('k') | components/gcm_driver.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698