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

Unified Diff: chrome/test/data/extensions/api_test/chrome_auth_private/installed_app/cloud_print_exception.js

Issue 9317013: Add a centralized mechanism for whitelisting access to extension permissions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: update CanSpecifyAPIPermission logic Created 8 years, 11 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/extensions/api_test/chrome_auth_private/installed_app/cloud_print_exception.js
diff --git a/chrome/test/data/extensions/api_test/chrome_auth_private/installed_app/cloud_print_exception.js b/chrome/test/data/extensions/api_test/chrome_auth_private/installed_app/cloud_print_exception.js
deleted file mode 100644
index 56aef5b269cf2120d99b0a136cee2a5e638c92f2..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/chrome_auth_private/installed_app/cloud_print_exception.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This test is invoked from a non-component app. So this call should throw an
-// exception when we try and access the chromeAuthPrivate API.
-var tests = [
- function exceptionSetCreds() {
- var expectedException =
- "Error: You do not have permission to use " +
- "'chromeAuthPrivate.setCloudPrintCredentials'. Be sure to declare in " +
- "your manifest what permissions you need.";
- var userEmail = 'foo@gmail.com';
- var robotEmail = 'foorobot@googleusercontent.com';
- var credentials = '1/23546efa54';
- try {
- chrome.chromeAuthPrivate.setCloudPrintCredentials(
- userEmail, robotEmail, credentials);
- } catch (err) {
- chrome.test.assertEq(expectedException, err.toString());
- chrome.test.succeed();
- return;
- }
- chrome.test.fail();
- }
-];
-
-chrome.test.runTests(tests);

Powered by Google App Engine
This is Rietveld 408576698