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

Unified Diff: chrome/test/data/extensions/extension_api_unittest/types_have_namespace.json

Issue 10367002: Make all extension api types fully qualified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix webrequest tests Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/extension_api_unittest/types_have_namespace.json
diff --git a/chrome/test/data/extensions/extension_api_unittest/types_have_namespace.json b/chrome/test/data/extensions/extension_api_unittest/types_have_namespace.json
new file mode 100644
index 0000000000000000000000000000000000000000..6b835420c4166ea2a9c43ef53fc55e81209b4e32
--- /dev/null
+++ b/chrome/test/data/extensions/extension_api_unittest/types_have_namespace.json
@@ -0,0 +1,38 @@
+[{
+ "namespace":"test.foo",
+ "types": [
+ {
+ "id": "TestType",
+ "type": "object",
+ "customBindings": "TestType",
+ "properties": {
+ "foo": {"$ref": "OtherType"},
+ "bar": {"$ref": "fully.qualified.Type"}
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "doFoo",
+ "type": "function",
+ "parameters": [ { "name": "t", "$ref": "TestType" } ],
+ "returns": { "$ref": "fully.qualified.Type" }
+ },
+ {
+ "name": "doBar",
+ "type": "function",
+ "parameters": [ { "name": "t", "$ref": "fully.qualified.Type" } ],
+ "returns": { "$ref": "TestType" }
+ }
+ ],
+ "events": [
+ {
+ "name": "onFoo",
+ "type": "function",
+ "parameters": [
+ { "name": "t1", "$ref": "TestType" },
+ { "name": "t2", "$ref": "fully.qualified.Type" }
+ ]
+ }
+ ]
+}]
« no previous file with comments | « chrome/renderer/resources/extensions/types_custom_bindings.js ('k') | tools/json_schema_compiler/cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698