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

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

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static cast to int Created 6 years, 9 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
« no previous file with comments | « chrome/test/data/extensions/api_test/cast_streaming/stats.html ('k') | media/cast/logging/logging_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/test/data/extensions/api_test/cast_streaming/stats.html ('k') | media/cast/logging/logging_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698