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

Unified Diff: tools/json_schema_compiler/test/objects.json

Issue 682493002: Remove the dependency on json schema compiler. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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: tools/json_schema_compiler/test/objects.json
diff --git a/tools/json_schema_compiler/test/objects.json b/tools/json_schema_compiler/test/objects.json
deleted file mode 100644
index e76e229900a1938dc710fa3af1a8a77c846007aa..0000000000000000000000000000000000000000
--- a/tools/json_schema_compiler/test/objects.json
+++ /dev/null
@@ -1,140 +0,0 @@
-[
- {
- "namespace": "objects",
- "description": "The objects API.",
- "types": [],
- "functions": [
- {
- "name": "objectParam",
- "type": "function",
- "description": "Takes an object.",
- "parameters": [
- {
- "name": "info",
- "type": "object",
- "properties": {
- "strings": {
- "type": "array",
- "items": {"type": "string"}
- },
- "integer": {
- "type": "integer"
- },
- "boolean": {
- "type": "boolean"
- }
- }
- },
- {
- "name": "callback",
- "type": "function",
- "parameters": []
- }
- ]
- },
- {
- "name": "returnsObject",
- "description": "Returns an object.",
- "type": "function",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "info",
- "type": "object",
- "properties": {
- "state": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- }
- }
- ]
- }
- ]
- },
- {
- "name": "returnsTwoObjects",
- "description": "Return two objects.",
- "type": "function",
- "parameters": [
- {
- "name": "callback",
- "type": "function",
- "parameters": [
- {
- "name": "firstInfo",
- "type": "object",
- "properties": {
- "state": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- }
- },
- {
- "name": "secondInfo",
- "type": "object",
- "properties": {
- "state": {
- "type": "string",
- "enum": ["spam", "ham", "eggs"]
- }
- }
- }
- ]
- }
- ]
- }
- ],
- "events": [
- {
- "name": "onObjectFired",
- "type": "function",
- "description": "Fired when an object is ready.",
- "parameters": [
- {
- "name": "someObject",
- "type": "object",
- "properties": {
- "state": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- }
- }
- ]
- },
- {
- "name": "onTwoObjectsFired",
- "type": "function",
- "description": "Fired when two objects are ready.",
- "parameters": [
- {
- "name": "firstObject",
- "type": "object",
- "properties": {
- "state": {
- "type": "string",
- "enum": ["foo", "bar", "baz"]
- }
- }
- },
- {
- "name": "secondObject",
- "type": "object",
- "properties": {
- "state": {
- "type": "string",
- "enum": ["spam", "ham", "eggs"]
- }
- }
- }
- ]
- }
- ]
- }
-]
-
« no previous file with comments | « tools/json_schema_compiler/test/json_schema_test.json ('k') | tools/json_schema_compiler/test/objects_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698