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

Unified Diff: media/audio/audio_output_controller_unittest.cc

Issue 14600025: Replace AudioSilenceDetector with an AudioPowerMonitor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 c6c2d4572a05d935c2428c1a5ac844b9dcadeccf..a09fd03ad9af6f77b23152e529cb5b769b53b6d1 100644
--- a/media/audio/audio_output_controller_unittest.cc
+++ b/media/audio/audio_output_controller_unittest.cc
@@ -40,7 +40,7 @@ class MockAudioOutputControllerEventHandler
MOCK_METHOD0(OnCreated, void());
MOCK_METHOD0(OnPlaying, void());
- MOCK_METHOD1(OnAudible, void(bool is_audible));
+ MOCK_METHOD1(OnPowerMeasured, void(float power_in_dbfs));
MOCK_METHOD0(OnPaused, void());
MOCK_METHOD0(OnError, void());
MOCK_METHOD2(OnDeviceChange, void(int new_buffer_size, int new_sample_rate));
@@ -132,10 +132,10 @@ class AudioOutputControllerTest : public testing::Test {
void Play() {
// Expect the event handler to receive one OnPlaying() call and one or more
- // OnAudible() calls.
+ // OnPowerMeasured() calls.
EXPECT_CALL(mock_event_handler_, OnPlaying())
.WillOnce(SignalEvent(&play_event_));
- EXPECT_CALL(mock_event_handler_, OnAudible(_))
+ EXPECT_CALL(mock_event_handler_, OnPowerMeasured(_))
.Times(AtLeast(1));
// During playback, the mock pretends to provide audio data rendered and

Powered by Google App Engine
This is Rietveld 408576698