Chromium Code Reviews| Index: chrome/test/data/extensions/api_test/cast_streaming/basics.js |
| diff --git a/chrome/test/data/extensions/api_test/cast_streaming/basics.js b/chrome/test/data/extensions/api_test/cast_streaming/basics.js |
| index 73b04ae7bb9bb6b8f099b03fff189fc972075be9..e494aa573fc1966e1fa71d1a64d475e30a66f5e2 100644 |
| --- a/chrome/test/data/extensions/api_test/cast_streaming/basics.js |
| +++ b/chrome/test/data/extensions/api_test/cast_streaming/basics.js |
| @@ -9,6 +9,7 @@ var createSession = chrome.cast.streaming.session.create; |
| chrome.test.runTests([ |
| function rtpStreamStart() { |
| + console.log("[TEST] rtpStreamStart"); |
|
not at google - send to devlin
2013/12/27 10:35:22
this should happen automatically?
Alpha Left Google
2013/12/27 21:57:07
I didn't see that in the log. Only [SUCCESS]***.
not at google - send to devlin
2013/12/27 22:56:58
Ah ok you're right, there is no logging, sorry. Wh
|
| tabCapture.capture({audio: true, video: true}, function(stream) { |
| console.log("Got MediaStream."); |
| chrome.test.assertTrue(!!stream); |
| @@ -36,4 +37,28 @@ chrome.test.runTests([ |
| }.bind(null, stream)); |
| }); |
| }, |
| + function invalidKey() { |
| + console.log("[TEST] invalidKey"); |
|
not at google - send to devlin
2013/12/27 10:35:22
ditto. is something not working?
Alpha Left Google
2013/12/27 21:57:07
Same here I couldn't see the message when a start
|
| + tabCapture.capture({audio: true, video: true}, function(stream) { |
|
not at google - send to devlin
2013/12/27 10:35:22
you should probably be wrapping all callbacks (her
Alpha Left Google
2013/12/27 21:57:07
Done.
|
| + chrome.test.assertTrue(!!stream); |
| + createSession(stream.getAudioTracks()[0], |
| + stream.getVideoTracks()[0], |
| + function(stream, audioId, videoId, udpId) { |
| + try { |
| + var audioParams = rtpStream.getCaps(audioId); |
| + var videoParams = rtpStream.getCaps(videoId); |
| + audioParams.payloads[0].aes_key = "google"; |
| + videoParams.payloads[0].aes_iv_mask = "chrome"; |
| + rtpStream.start(audioId, audioParams); |
| + rtpStream.start(videoId, videoParams); |
|
not at google - send to devlin
2013/12/27 10:35:22
need a comment somewhere around here indicating wh
Alpha Left Google
2013/12/27 21:57:07
Done.
I'll probably punt having the correct AES k
|
| + } catch (e) { |
| + rtpStream.destroy(audioId); |
| + rtpStream.destroy(videoId); |
| + udpTransport.destroy(udpId); |
| + stream.stop(); |
| + chrome.test.succeed(); |
| + } |
| + }.bind(null, stream)); |
| + }); |
| + }, |
| ]); |