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

Unified Diff: media/audio/audio_output_controller_unittest.cc

Issue 1896883002: Mojo interfaces needed for switching audio rendering stream creation and closing from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: All grunell comments resolved Created 4 years, 8 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_controller_unittest.cc
diff --git a/media/audio/audio_output_controller_unittest.cc b/media/audio/audio_output_controller_unittest.cc
index 1046893ae589fb4a3ffa1efbf30497c02f3fcfb3..f96e9c0c7d3164d96c465e4af34a80e2340f2c5e 100644
--- a/media/audio/audio_output_controller_unittest.cc
+++ b/media/audio/audio_output_controller_unittest.cc
@@ -39,7 +39,9 @@ class MockAudioOutputControllerEventHandler
public:
MockAudioOutputControllerEventHandler() {}
- MOCK_METHOD0(OnCreated, void());
+ MOCK_METHOD1(
+ OnCreated,
+ void(const content::mojom::AudioOutput::CreateStreamCallback& callback));
MOCK_METHOD0(OnPlaying, void());
MOCK_METHOD0(OnPaused, void());
MOCK_METHOD0(OnError, void());
@@ -113,15 +115,16 @@ class AudioOutputControllerTest : public testing::Test {
params_ = AudioParameters(
AudioParameters::AUDIO_FAKE, kChannelLayout,
kSampleRate, kBitsPerSample, samples_per_packet);
-
+ content::mojom::AudioOutput::CreateStreamCallback callback;
if (params_.IsValid()) {
- EXPECT_CALL(mock_event_handler_, OnCreated())
- .WillOnce(SignalEvent(&create_event_));
+ /*
+ EXPECT_CALL(mock_event_handler_, OnCreated(callback))
+ .WillOnce(SignalEvent(&create_event_));*/
}
controller_ = AudioOutputController::Create(
audio_manager_.get(), &mock_event_handler_, params_, std::string(),
- &mock_sync_reader_);
+ &mock_sync_reader_, callback);
if (controller_.get())
controller_->SetVolume(kTestVolume);

Powered by Google App Engine
This is Rietveld 408576698