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

Side by Side Diff: media/cast/logging/encoding_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/logging/encoding_event_subscriber.h" 5 #include "media/cast/logging/encoding_event_subscriber.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 } 30 }
31 31
32 namespace media { 32 namespace media {
33 namespace cast { 33 namespace cast {
34 34
35 class EncodingEventSubscriberTest : public ::testing::Test { 35 class EncodingEventSubscriberTest : public ::testing::Test {
36 protected: 36 protected:
37 EncodingEventSubscriberTest() 37 EncodingEventSubscriberTest()
38 : testing_clock_(new base::SimpleTestTickClock()), 38 : testing_clock_(new base::SimpleTestTickClock(base::TimeTicks())),
39 task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)), 39 task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)),
40 cast_environment_( 40 cast_environment_(
41 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_), 41 new CastEnvironment(scoped_ptr<base::TickClock>(testing_clock_),
42 task_runner_, 42 task_runner_,
43 task_runner_, 43 task_runner_,
44 task_runner_)), 44 task_runner_)),
45 first_rtp_timestamp_(0) {} 45 first_rtp_timestamp_(0) {}
46 46
47 void Init(EventMediaType event_media_type) { 47 void Init(EventMediaType event_media_type) {
48 DCHECK(!event_subscriber_); 48 DCHECK(!event_subscriber_);
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 EXPECT_EQ(kMaxEventsPerProto, 775 EXPECT_EQ(kMaxEventsPerProto,
776 packet_event->base_packet_event(0).event_type_size()); 776 packet_event->base_packet_event(0).event_type_size());
777 777
778 ++packet_it; 778 ++packet_it;
779 packet_event = *packet_it; 779 packet_event = *packet_it;
780 EXPECT_EQ(1, packet_event->base_packet_event(0).event_type_size()); 780 EXPECT_EQ(1, packet_event->base_packet_event(0).event_type_size());
781 } 781 }
782 782
783 } // namespace cast 783 } // namespace cast
784 } // namespace media 784 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/video_frame_compositor_unittest.cc ('k') | media/cast/logging/receiver_time_offset_estimator_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698