| Index: content/browser/renderer_host/media/audio_renderer_host_unittest.cc
|
| diff --git a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
|
| index 343c9890810ed2e6271dcc20dbb11986c1287d3c..401f183723425a14e579910ab715bed0ba351ed9 100644
|
| --- a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
|
| +++ b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/run_loop.h"
|
| #include "base/sync_socket.h"
|
| +#include "content/browser/browser_message_filter_peer.h"
|
| #include "content/browser/media/capture/audio_mirroring_manager.h"
|
| #include "content/browser/media/media_internals.h"
|
| #include "content/browser/renderer_host/media/audio_input_device_manager.h"
|
| @@ -166,13 +167,14 @@ class AudioRendererHostTest : public testing::Test {
|
| media_stream_manager_.get());
|
|
|
| // Simulate IPC channel connected.
|
| - host_->set_peer_pid_for_testing(base::GetCurrentProcId());
|
| + host_peer_.reset(new BrowserMessageFilterPeer(base::GetCurrentProcId()));
|
| + host_->OnFilterAddedToHost(host_peer_.get());
|
| }
|
|
|
| virtual ~AudioRendererHostTest() {
|
| // Simulate closing the IPC channel and give the audio thread time to close
|
| // the underlying streams.
|
| - host_->OnChannelClosing();
|
| + host_->OnSenderClosing();
|
| SyncWithAudioThread();
|
|
|
| // Release the reference to the mock object. The object will be destructed
|
| @@ -282,6 +284,7 @@ class AudioRendererHostTest : public testing::Test {
|
| scoped_ptr<media::AudioManager> audio_manager_;
|
| MockAudioMirroringManager mirroring_manager_;
|
| scoped_refptr<MockAudioRendererHost> host_;
|
| + scoped_ptr<BrowserMessageFilterPeer> host_peer_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AudioRendererHostTest);
|
| };
|
|
|