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

Side by Side Diff: media/cast/net/rtcp/receiver_rtcp_event_subscriber_unittest.cc

Issue 1178423008: Provision to start base::SimpleTestTickClock at initial ticks Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" 5 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 12 matching lines...) Expand all
23 namespace { 23 namespace {
24 24
25 const size_t kMaxEventEntries = 10u; 25 const size_t kMaxEventEntries = 10u;
26 const int64_t kDelayMs = 20L; 26 const int64_t kDelayMs = 20L;
27 27
28 } // namespace 28 } // namespace
29 29
30 class ReceiverRtcpEventSubscriberTest : public ::testing::Test { 30 class ReceiverRtcpEventSubscriberTest : public ::testing::Test {
31 protected: 31 protected:
32 ReceiverRtcpEventSubscriberTest() 32 ReceiverRtcpEventSubscriberTest()
33 : testing_clock_(new base::SimpleTestTickClock()), 33 : testing_clock_(new base::SimpleTestTickClock(base::TimeTicks())),
34 task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)), 34 task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)),
35 cast_environment_( 35 cast_environment_(
36 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_), 36 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_),
37 task_runner_, 37 task_runner_,
38 task_runner_, 38 task_runner_,
39 task_runner_)) {} 39 task_runner_)) {}
40 40
41 ~ReceiverRtcpEventSubscriberTest() override {} 41 ~ReceiverRtcpEventSubscriberTest() override {}
42 42
43 void TearDown() final { 43 void TearDown() final {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 cast_environment_->logger()->DispatchFrameEvent(std::move(decode_event)); 167 cast_environment_->logger()->DispatchFrameEvent(std::move(decode_event));
168 } 168 }
169 169
170 ReceiverRtcpEventSubscriber::RtcpEvents rtcp_events; 170 ReceiverRtcpEventSubscriber::RtcpEvents rtcp_events;
171 event_subscriber_->GetRtcpEventsWithRedundancy(&rtcp_events); 171 event_subscriber_->GetRtcpEventsWithRedundancy(&rtcp_events);
172 EXPECT_EQ(10u, rtcp_events.size()); 172 EXPECT_EQ(10u, rtcp_events.size());
173 } 173 }
174 174
175 } // namespace cast 175 } // namespace cast
176 } // namespace media 176 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/net/pacing/paced_sender_unittest.cc ('k') | media/cast/net/rtcp/rtcp_builder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698