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

Unified Diff: chrome/test/data/extensions/api_test/terminal/no_permission/test.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: fix a couple tests 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/terminal/no_permission/test.js
diff --git a/chrome/test/data/extensions/api_test/terminal/no_permission/test.js b/chrome/test/data/extensions/api_test/terminal/no_permission/test.js
deleted file mode 100644
index a8c5389d2dd5a3df9d0ca77d37910a55e2ee7e28..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/terminal/no_permission/test.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) 2012 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.
-
-var kPermissionError = "Extension does not have the permission to use this API";
-
-chrome.test.runTests([
- function tryOpenExtension() {
- chrome.terminalPrivate.openTerminalProcess("crosh",
- chrome.test.callbackFail(kPermissionError));
- },
- function trySendInput() {
- chrome.terminalPrivate.sendInput(1222, "some input",
- chrome.test.callbackFail(kPermissionError));
- },
- function tryClose() {
- chrome.terminalPrivate.closeTerminalProcess(1222,
- chrome.test.callbackFail(kPermissionError));
- }
-]);

Powered by Google App Engine
This is Rietveld 408576698