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

Unified Diff: media/audio/audio_output_device_unittest.cc

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review commnets + more tests fixes + 'Packet' structure Created 4 years, 6 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: media/audio/audio_output_device_unittest.cc
diff --git a/media/audio/audio_output_device_unittest.cc b/media/audio/audio_output_device_unittest.cc
index 4ce521f64137eefecb4b1fa583b9a6f7b162b36e..763e0c236cf64c4e75d2bc2bad1506e5478ea334 100644
--- a/media/audio/audio_output_device_unittest.cc
+++ b/media/audio/audio_output_device_unittest.cc
@@ -75,7 +75,8 @@ class MockAudioOutputIPC : public AudioOutputIPC {
};
ACTION_P2(SendPendingBytes, socket, pending_bytes) {
- socket->Send(&pending_bytes, sizeof(pending_bytes));
+ AudioDeviceThread::Packet packet = {pending_bytes, AudioTimestamp()};
+ socket->Send(&packet, sizeof(packet));
}
// Used to terminate a loop from a different thread than the loop belongs to.

Powered by Google App Engine
This is Rietveld 408576698