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

Unified Diff: content/renderer/media/webrtc_audio_device_unittest.cc

Issue 11573066: Add a method to tab_utils.h to find out whether a tab is playing audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years 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: content/renderer/media/webrtc_audio_device_unittest.cc
diff --git a/content/renderer/media/webrtc_audio_device_unittest.cc b/content/renderer/media/webrtc_audio_device_unittest.cc
index a1730feb946db8e81a79f2b288c6f6f72fe98bb3..6b89b8f2ebd632f2964c16f340665e241a054741 100644
--- a/content/renderer/media/webrtc_audio_device_unittest.cc
+++ b/content/renderer/media/webrtc_audio_device_unittest.cc
@@ -261,7 +261,7 @@ TEST_F(WebRTCAudioDeviceTest, StartPlayout) {
EXPECT_CALL(media_observer(),
OnSetAudioStreamStatus(_, 1, StrEq("created"))).Times(1);
EXPECT_CALL(media_observer(),
- OnSetAudioStreamPlaying(_, 1, true)).Times(1);
+ OnSetAudioStreamPlaying(_, 1, 0, 0, true)).Times(1);
EXPECT_CALL(media_observer(),
OnSetAudioStreamStatus(_, 1, StrEq("closed"))).Times(1);
EXPECT_CALL(media_observer(),
@@ -411,7 +411,7 @@ TEST_F(WebRTCAudioDeviceTest, PlayLocalFile) {
EXPECT_CALL(media_observer(),
OnSetAudioStreamStatus(_, 1, StrEq("created"))).Times(1);
EXPECT_CALL(media_observer(),
- OnSetAudioStreamPlaying(_, 1, true)).Times(1);
+ OnSetAudioStreamPlaying(_, 1, 0, 0, true)).Times(1);
EXPECT_CALL(media_observer(),
OnSetAudioStreamStatus(_, 1, StrEq("closed"))).Times(1);
EXPECT_CALL(media_observer(),
@@ -483,7 +483,7 @@ TEST_F(WebRTCAudioDeviceTest, FullDuplexAudioWithAGC) {
EXPECT_CALL(media_observer(),
OnSetAudioStreamStatus(_, 1, StrEq("created")));
EXPECT_CALL(media_observer(),
- OnSetAudioStreamPlaying(_, 1, true));
+ OnSetAudioStreamPlaying(_, 1, 0, 0, true));
EXPECT_CALL(media_observer(),
OnSetAudioStreamStatus(_, 1, StrEq("closed")));
EXPECT_CALL(media_observer(),

Powered by Google App Engine
This is Rietveld 408576698