| Index: chrome/test/data/extensions/api_test/cast_streaming/stats.js
|
| diff --git a/chrome/test/data/extensions/api_test/cast_streaming/basics.js b/chrome/test/data/extensions/api_test/cast_streaming/stats.js
|
| similarity index 89%
|
| copy from chrome/test/data/extensions/api_test/cast_streaming/basics.js
|
| copy to chrome/test/data/extensions/api_test/cast_streaming/stats.js
|
| index f6cd491f1403dc5eb68627b95d1022075441423c..943baa5bb03cbeb6bc0dcc5d54824a9ec933e58a 100644
|
| --- a/chrome/test/data/extensions/api_test/cast_streaming/basics.js
|
| +++ b/chrome/test/data/extensions/api_test/cast_streaming/stats.js
|
| @@ -9,8 +9,8 @@ var createSession = chrome.cast.streaming.session.create;
|
| var pass = chrome.test.callbackPass;
|
|
|
| chrome.test.runTests([
|
| - function rtpStreamStart() {
|
| - console.log("[TEST] rtpStreamStart");
|
| + function getStats() {
|
| + console.log("[TEST] getStats");
|
| tabCapture.capture({audio: true, video: true},
|
| pass(function(stream) {
|
| console.log("Got MediaStream.");
|
| @@ -44,12 +44,12 @@ chrome.test.runTests([
|
| stateMachine.onStopped.bind(stateMachine));
|
| stateMachine.onAllStopped =
|
| pass(function(audioId, videoId) {
|
| - rtpStream.getRawEvents(audioId,
|
| - stateMachine.onGotRawEvents.bind(stateMachine, audioId));
|
| - rtpStream.getRawEvents(videoId,
|
| - stateMachine.onGotRawEvents.bind(stateMachine, videoId));
|
| + rtpStream.getStats(audioId,
|
| + stateMachine.onGotLogs.bind(stateMachine, audioId));
|
| + rtpStream.getStats(videoId,
|
| + stateMachine.onGotLogs.bind(stateMachine, videoId));
|
| }.bind(null, audioId, videoId));
|
| - stateMachine.onGotAllRawEvents =
|
| + stateMachine.onGotAllLogs =
|
| pass(function(stream, audioId, videoId, udpId) {
|
| console.log("Disabling logging.");
|
| rtpStream.toggleLogging(audioId, false);
|
|
|