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

Side by Side Diff: chrome/test/media_router/resources/README.md

Issue 2108973002: [Media Router] Return NotFoundError on dialog exit if appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments, add no-sinks integration test, update test data json format Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 The document shows how to create a test data file which is used for the 1 The document shows how to create a test data file which is used for the
2 integration test to inject test data before running test. 2 integration test to inject test data before running test.
3 ---------------------------------------------------------------------------- 3 ----------------------------------------------------------------------------
4 The test data is a JSON string and here is full example with description: 4 The test data is a JSON string and here is full example with description:
5 5
6 { 6 {
7 // Define the return value for getAvailableSinks API defined in 7 // Define the return value for getAvailableSinks API defined in
8 // TestProvider.js. 8 // TestProvider.js.
9 // The return value is a list as following. Default value is: 9 // The value is a map from source urn to a list of sinks as following. Default
10 // value is for test source urn only and is:
10 // [{"id": "id1", "friendlyName": "test-sink-1"}, 11 // [{"id": "id1", "friendlyName": "test-sink-1"},
11 // {"id": "id2", "friendlyName": "test-sink-2"}] 12 // {"id": "id2", "friendlyName": "test-sink-2"}]
12 "getAvailableSinks": [{"id": "id1", "friendlyName": "test-device-1"}, 13 "getAvailableSinks": {
13 {"id": "id2", "friendlyName": "test-device-2"}], 14 "http://www.google.com/": [
15 {"id": "id1", "friendlyName": "test-device-1"},
16 {"id": "id2", "friendlyName": "test-device-2"}
17 ]
18 },
14 19
15 // Define the return value for canRoute API, the return value should be 20 // Define the return value for canRoute API, the return value should be
16 // either 'true' or 'false'. The default value is 'true'. 21 // either 'true' or 'false'. The default value is 'true'.
17 "canRoute": "true", 22 "canRoute": "true",
18 23
19 // Define the return value for createRoute API. Since the return type of 24 // Define the return value for createRoute API. Since the return type of
20 // createRoute is a Promise, here we just need to define 25 // createRoute is a Promise, here we just need to define
21 // if return successful result or error. 26 // if return successful result or error.
22 // The value for 'passed' should be either 'true' or 'false'. 27 // The value for 'passed' should be either 'true' or 'false'.
23 // If it is 'false', you also need to give the corresponding 28 // If it is 'false', you also need to give the corresponding
24 // error message. If it is 'true', the error message will be ignored. 29 // error message. If it is 'true', the error message will be ignored.
25 // TODO(leilei): Change keyword 'passed' to 'success'. 30 // TODO(leilei): Change keyword 'passed' to 'success'.
26 "createRoute": {"passed": "false", "errorMessage": "Unknown sink"} 31 "createRoute": {"passed": "false", "errorMessage": "Unknown sink"}
27 } 32 }
OLDNEW
« no previous file with comments | « chrome/test/media_router/media_router_tests.gypi ('k') | chrome/test/media_router/resources/no_sinks.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698