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

Unified Diff: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing compilation errors Created 6 years, 6 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: content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
index 9e060d497b8df527cb5a53b3b69b2b1038547ece..95cf734833a7f843c8aba713e34c000f8459167c 100644
--- a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
+++ b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc
@@ -263,7 +263,7 @@ class MediaStreamDispatcherHostTest : public testing::Test {
}
virtual void TearDown() OVERRIDE {
- host_->OnChannelClosing();
+ host_->OnSenderClosing();
}
protected:
@@ -804,7 +804,7 @@ TEST_F(MediaStreamDispatcherHostTest,
EXPECT_EQ(host_->video_devices_.size(), 1u);
}
-TEST_F(MediaStreamDispatcherHostTest, CancelPendingStreamsOnChannelClosing) {
+TEST_F(MediaStreamDispatcherHostTest, CancelPendingStreamsOnSenderClosing) {
StreamOptions options(false, true);
base::RunLoop run_loop;
@@ -816,12 +816,12 @@ TEST_F(MediaStreamDispatcherHostTest, CancelPendingStreamsOnChannelClosing) {
run_loop.QuitClosure());
}
- // Calling OnChannelClosing() to cancel all the pending requests.
- host_->OnChannelClosing();
+ // Calling OnSenderClosing() to cancel all the pending requests.
+ host_->OnSenderClosing();
run_loop.RunUntilIdle();
}
-TEST_F(MediaStreamDispatcherHostTest, StopGeneratedStreamsOnChannelClosing) {
+TEST_F(MediaStreamDispatcherHostTest, StopGeneratedStreamsOnSenderClosing) {
StreamOptions options(false, true);
// Create first group of streams.
@@ -831,8 +831,8 @@ TEST_F(MediaStreamDispatcherHostTest, StopGeneratedStreamsOnChannelClosing) {
GenerateStreamAndWaitForResult(kRenderId, kPageRequestId + i, options);
}
- // Calling OnChannelClosing() to cancel all the pending/generated streams.
- host_->OnChannelClosing();
+ // Calling OnSenderClosing() to cancel all the pending/generated streams.
+ host_->OnSenderClosing();
base::RunLoop().RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698