| 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 "base/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/test/simple_test_tick_clock.h" | 7 #include "base/test/simple_test_tick_clock.h" |
| 8 #include "base/time/tick_clock.h" | 8 #include "base/time/tick_clock.h" |
| 9 #include "media/cast/cast_environment.h" | 9 #include "media/cast/cast_environment.h" |
| 10 #include "media/cast/logging/logging_defines.h" | 10 #include "media/cast/logging/logging_defines.h" |
| 11 #include "media/cast/rtcp/receiver_rtcp_event_subscriber.h" | 11 #include "media/cast/net/rtcp/receiver_rtcp_event_subscriber.h" |
| 12 #include "media/cast/test/fake_single_thread_task_runner.h" | 12 #include "media/cast/test/fake_single_thread_task_runner.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 namespace cast { | 16 namespace cast { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const size_t kMaxEventEntries = 10u; | 20 const size_t kMaxEventEntries = 10u; |
| 21 const int64 kDelayMs = 20L; | 21 const int64 kDelayMs = 20L; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 /*rtp_timestamp*/ i * 10, /*frame_id*/ i); | 122 /*rtp_timestamp*/ i * 10, /*frame_id*/ i); |
| 123 } | 123 } |
| 124 | 124 |
| 125 ReceiverRtcpEventSubscriber::RtcpEventMultiMap rtcp_events; | 125 ReceiverRtcpEventSubscriber::RtcpEventMultiMap rtcp_events; |
| 126 event_subscriber_->GetRtcpEventsAndReset(&rtcp_events); | 126 event_subscriber_->GetRtcpEventsAndReset(&rtcp_events); |
| 127 EXPECT_EQ(10u, rtcp_events.size()); | 127 EXPECT_EQ(10u, rtcp_events.size()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace cast | 130 } // namespace cast |
| 131 } // namespace media | 131 } // namespace media |
| OLD | NEW |