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

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

Issue 189583004: Cast: Implement log compression and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/test/data/extensions/api_test/cast_streaming/common.js
diff --git a/chrome/test/data/extensions/api_test/cast_streaming/common.js b/chrome/test/data/extensions/api_test/cast_streaming/common.js
index 2862b17f6317042ad108f7274e79bc61558c770a..76f41116131b2663706183e05d78b8665ca4f990 100644
--- a/chrome/test/data/extensions/api_test/cast_streaming/common.js
+++ b/chrome/test/data/extensions/api_test/cast_streaming/common.js
@@ -33,8 +33,7 @@ TestStateMachine.prototype.onStopped = function(id) {
this.onAllStopped();
}
-TestStateMachine.prototype.onGotLogs = function(id, data) {
- chrome.test.assertTrue(!!data);
+TestStateMachine.prototype.onGotLogs = function(id) {
if (id == this.audioId)
this.gotAudioLogs = true;
if (id == this.videoId)
@@ -43,3 +42,12 @@ TestStateMachine.prototype.onGotLogs = function(id, data) {
this.onGotAllLogs();
}
+TestStateMachine.prototype.onGotRawEvents = function(id, data) {
+ chrome.test.assertTrue(data.byteLength > 0);
+ this.onGotLogs(id);
+}
+TestStateMachine.prototype.onGotStats = function(id, data) {
+ chrome.test.assertTrue(!!data);
+ this.onGotLogs(id);
+}
+

Powered by Google App Engine
This is Rietveld 408576698