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

Unified Diff: chrome/test/data/extensions/api_test/cast_streaming/basics.js

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: 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 f6cd491f1403dc5eb68627b95d1022075441423c..254b3891119483063af18ce6cff87c17c9662ef2 100644
--- a/chrome/test/data/extensions/api_test/cast_streaming/basics.js
+++ b/chrome/test/data/extensions/api_test/cast_streaming/basics.js
@@ -45,11 +45,15 @@ chrome.test.runTests([
stateMachine.onAllStopped =
pass(function(audioId, videoId) {
rtpStream.getRawEvents(audioId,
- stateMachine.onGotRawEvents.bind(stateMachine, audioId));
+ stateMachine.onGotLogs.bind(stateMachine, audioId, false));
Alpha Left Google 2014/03/03 07:11:39 This test is already complicated. I'd refer getSta
imcheng 2014/03/04 02:06:24 Done.
rtpStream.getRawEvents(videoId,
- stateMachine.onGotRawEvents.bind(stateMachine, videoId));
+ stateMachine.onGotLogs.bind(stateMachine, videoId, false));
+ rtpStream.getStats(audioId,
+ stateMachine.onGotLogs.bind(stateMachine, audioId, true));
+ rtpStream.getStats(videoId,
+ stateMachine.onGotLogs.bind(stateMachine, videoId, true));
}.bind(null, audioId, videoId));
- stateMachine.onGotAllRawEvents =
+ stateMachine.onGotAllLogs =
pass(function(stream, audioId, videoId, udpId) {
console.log("Disabling logging.");
rtpStream.toggleLogging(audioId, false);

Powered by Google App Engine
This is Rietveld 408576698