| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |