OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "test", | 7 "namespace": "test", |
8 "description": "none", | 8 "description": "none", |
9 "functions": [ | 9 "functions": [ |
10 { | 10 { |
11 "name": "getConfig", | 11 "name": "getConfig", |
12 "type": "function", | 12 "type": "function", |
13 "description": "Gives configuration options set by the test.", | 13 "description": "Gives configuration options set by the test.", |
14 "parameters": [ | 14 "parameters": [ |
15 { | 15 { |
16 "type": "function", "name": "callback", "parameters": [ | 16 "type": "function", "name": "callback", "parameters": [ |
17 { | 17 { |
18 "type": "object", | 18 "type": "object", |
19 "name": "testConfig", | 19 "name": "testConfig", |
20 "properties": { | 20 "properties": { |
21 "customArg": { | 21 "customArg": { |
22 "type": "string", | 22 "type": "string", |
23 "optional": true, | 23 "optional": true, |
24 "description": "Additional string argument to pass to test." | 24 "description": "Additional string argument to pass to test." |
25 }, | 25 }, |
| 26 "ftpServer": { |
| 27 "type": "object", |
| 28 "optional": true, |
| 29 "description": "Details on the FTP server used to mock netwo
rk responses. Will be set only if test calls ExtensionApiTest::StartFTPServer()
.", |
| 30 "properties": { |
| 31 "port": { |
| 32 "type": "integer", |
| 33 "description": "The port on which the FTP server is list
ening.", |
| 34 "minimum": 1024, |
| 35 "maximum": 65535 |
| 36 } |
| 37 } |
| 38 }, |
26 "testServer": { | 39 "testServer": { |
27 "type": "object", | 40 "type": "object", |
28 "optional": true, | 41 "optional": true, |
29 "description": "Details on the test server used to mock netw
ork responses. Will be set only if test calls ExtensionApiTest::StartTestServer
().", | 42 "description": "Details on the test server used to mock netw
ork responses. Will be set only if test calls ExtensionApiTest::StartTestServer
().", |
30 "properties": { | 43 "properties": { |
31 "port": { | 44 "port": { |
32 "type": "integer", | 45 "type": "integer", |
33 "description": "The port on which the test server is lis
tening.", | 46 "description": "The port on which the test server is lis
tening.", |
34 "minimum": 1024, | 47 "minimum": 1024, |
35 "maximum": 65535 | 48 "maximum": 65535 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 "properties": { | 395 "properties": { |
383 "data": { "type": "string", "description": "Additional information
." }, | 396 "data": { "type": "string", "description": "Additional information
." }, |
384 "lastMessage": { "type": "boolean", "description": "True if this w
as the last message for this test" } | 397 "lastMessage": { "type": "boolean", "description": "True if this w
as the last message for this test" } |
385 } | 398 } |
386 } | 399 } |
387 ] | 400 ] |
388 } | 401 } |
389 ] | 402 ] |
390 } | 403 } |
391 ] | 404 ] |
OLD | NEW |