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

Unified Diff: chrome/common/extensions/api/test.json

Issue 11571014: Lazy load chrome.* APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android compilation Created 7 years, 9 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
« no previous file with comments | « chrome/common/extensions/api/extension_api_unittest.cc ('k') | chrome/common/extensions/features/feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/test.json
diff --git a/chrome/common/extensions/api/test.json b/chrome/common/extensions/api/test.json
index 17ad5313930e5105debadc44dd66054990d0ebee..add13d8662483201d5a572582cbb2be26e5c4a50 100644
--- a/chrome/common/extensions/api/test.json
+++ b/chrome/common/extensions/api/test.json
@@ -104,6 +104,205 @@
]
}
]
+ },
+ {
+ "name": "callbackAdded",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": []
+ },
+ {
+ "name": "runNextTest",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": []
+ },
+ {
+ "name": "fail",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {"type": "any", "name": "message", "optional": true}
+ ]
+ },
+ {
+ "name": "succeed",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {"type": "any", "name": "message", "optional": true}
+ ]
+ },
+ {
+ "name": "assertTrue",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {
+ "name": "test",
+ "choices": [
+ {"type": "string"},
+ {"type": "boolean"}
+ ]
+ },
+ {"type": "string", "name": "message", "optional": true}
+ ]
+ },
+ {
+ "name": "assertFalse",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {
+ "name": "test",
+ "choices": [
+ {"type": "string"},
+ {"type": "boolean"}
+ ]
+ },
+ {"type": "string", "name": "message", "optional": true}
+ ]
+ },
+ {
+ "name": "assertBool",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {
+ "name": "test",
+ "choices": [
+ {"type": "string"},
+ {"type": "boolean"}
+ ]
+ },
+ {"type": "boolean", "name": "expected"},
+ {"type": "string", "name": "message", "optional": true}
+ ]
+ },
+ {
+ "name": "checkDeepEq",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "allowAmbiguousOptionalArguments": true,
+ "parameters": [
+ // These need to be optional because they can be null.
+ {"type": "any", "name": "expected", "optional": true},
+ {"type": "any", "name": "actual", "optional": true}
+ ]
+ },
+ {
+ "name": "assertEq",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "allowAmbiguousOptionalArguments": true,
+ "parameters": [
+ // These need to be optional because they can be null.
+ {"type": "any", "name": "expected", "optional": true},
+ {"type": "any", "name": "actual", "optional": true},
+ {"type": "string", "name": "message", "optional": true}
+ ]
+ },
+ {
+ "name": "assertNoLastError",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": []
+ },
+ {
+ "name": "assertLastError",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {"type": "string", "name": "expectedError"}
+ ]
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {"type": "function", "name": "func", "optional": true},
+ {"type": "string", "name": "expectedError", "optional": true}
+ ]
+ },
+ {
+ "name": "listenOnce",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ // TODO(cduvall): Make this a $ref to events.Event.
+ {"type": "any", "name": "event"},
+ {"type": "function", "name": "func"}
+ ]
+ },
+ {
+ "name": "listenForever",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ // TODO(cduvall): Make this a $ref to events.Event.
+ {"type": "any", "name": "event"},
+ {"type": "function", "name": "func"}
+ ]
+ },
+ {
+ "name": "callbackPass",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {"type": "function", "name": "func", "optional": true}
+ ]
+ },
+ {
+ "name": "callbackFail",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {"type": "string", "name": "expectedError"},
+ {"type": "function", "name": "func", "optional": true}
+ ]
+ },
+ {
+ "name": "runTests",
+ "type": "function",
+ "unprivileged": true,
+ "nocompile": true,
+ "parameters": [
+ {
+ "type": "array",
+ "name": "tests",
+ "items": {"type": "function"}
+ }
+ ]
+ },
+ {
+ "name": "getApiDefinitions",
+ "type": "function",
+ "nocompile": true,
+ "parameters": [
+ {
+ "type": "array",
+ "name": "apiNames",
+ "optional": true,
+ "items": {"type": "string"}
+ }
+ ]
}
],
"events": [
« no previous file with comments | « chrome/common/extensions/api/extension_api_unittest.cc ('k') | chrome/common/extensions/features/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698