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

Unified Diff: media/audio/audio_output_controller_unittest.cc

Issue 10830268: Allow audio system to handle synchronized low-latency audio I/O (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « media/audio/audio_output_controller.cc ('k') | media/audio/audio_output_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller_unittest.cc
===================================================================
--- media/audio/audio_output_controller_unittest.cc (revision 156123)
+++ media/audio/audio_output_controller_unittest.cc (working copy)
@@ -52,7 +52,7 @@
MockAudioOutputControllerSyncReader() {}
MOCK_METHOD1(UpdatePendingBytes, void(uint32 bytes));
- MOCK_METHOD1(Read, int(AudioBus* audio_bus));
+ MOCK_METHOD2(Read, int(AudioBus* source, AudioBus* dest));
MOCK_METHOD0(Close, void());
MOCK_METHOD0(DataReady, bool());
@@ -66,7 +66,7 @@
// Custom action to clear a memory buffer.
ACTION(ClearBuffer) {
- arg0->Zero();
+ arg1->Zero();
}
// Closes AudioOutputController synchronously.
@@ -130,7 +130,7 @@
MockAudioOutputControllerSyncReader sync_reader;
EXPECT_CALL(sync_reader, UpdatePendingBytes(_))
.Times(AtLeast(2));
- EXPECT_CALL(sync_reader, Read(_))
+ EXPECT_CALL(sync_reader, Read(_, _))
.WillRepeatedly(DoAll(ClearBuffer(), SignalEvent(&event),
Return(4)));
EXPECT_CALL(sync_reader, DataReady())
@@ -202,7 +202,7 @@
MockAudioOutputControllerSyncReader sync_reader;
EXPECT_CALL(sync_reader, UpdatePendingBytes(_))
.Times(AtLeast(1));
- EXPECT_CALL(sync_reader, Read(_))
+ EXPECT_CALL(sync_reader, Read(_, _))
.WillRepeatedly(DoAll(ClearBuffer(), SignalEvent(&event), Return(4)));
EXPECT_CALL(sync_reader, DataReady())
.WillRepeatedly(Return(true));
« no previous file with comments | « media/audio/audio_output_controller.cc ('k') | media/audio/audio_output_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698