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

Unified Diff: media/cast/net/rtcp/rtcp_receiver_unittest.cc

Issue 442273002: Cast: Not leak in cast_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/rtcp/rtcp_receiver_unittest.cc
diff --git a/media/cast/net/rtcp/rtcp_receiver_unittest.cc b/media/cast/net/rtcp/rtcp_receiver_unittest.cc
index 5b067a0918743a706615f5d71b2e8cb82d678271..a32edbd22471a5753736c40291c568fb75a260b8 100644
--- a/media/cast/net/rtcp/rtcp_receiver_unittest.cc
+++ b/media/cast/net/rtcp/rtcp_receiver_unittest.cc
@@ -120,7 +120,8 @@ class RtcpReceiverTest : public ::testing::Test {
protected:
RtcpReceiverTest()
: testing_clock_(new base::SimpleTestTickClock()),
- task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)),
+ task_runner_(new test::FakeSingleThreadTaskRunner(
+ testing_clock_.get())),
rtcp_receiver_(new RtcpReceiver(&mock_receiver_feedback_,
kSourceSsrc)) {
EXPECT_CALL(mock_receiver_feedback_, OnReceivedSenderReport(_)).Times(0);
@@ -157,7 +158,7 @@ class RtcpReceiverTest : public ::testing::Test {
rtcp_receiver_->IncomingRtcpPacket(&rtcp_parser);
}
- base::SimpleTestTickClock* testing_clock_; // Owned by CastEnvironment.
+ scoped_ptr<base::SimpleTestTickClock> testing_clock_;
scoped_refptr<test::FakeSingleThreadTaskRunner> task_runner_;
MockRtcpReceiverFeedback mock_receiver_feedback_;
scoped_ptr<RtcpReceiver> rtcp_receiver_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698