| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test/simple_test_tick_clock.h" | 5 #include "base/test/simple_test_tick_clock.h" |
| 6 #include "media/cast/framer/framer.h" | 6 #include "media/cast/framer/framer.h" |
| 7 #include "media/cast/rtp_common/mock_rtp_payload_feedback.h" | 7 #include "media/cast/rtp_receiver/mock_rtp_payload_feedback.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 namespace cast { | 11 namespace cast { |
| 12 | 12 |
| 13 class FramerTest : public ::testing::Test { | 13 class FramerTest : public ::testing::Test { |
| 14 protected: | 14 protected: |
| 15 FramerTest() | 15 FramerTest() |
| 16 : mock_rtp_payload_feedback_(), | 16 : mock_rtp_payload_feedback_(), |
| 17 framer_(&testing_clock_, &mock_rtp_payload_feedback_, 0, true, 0) { | 17 framer_(&testing_clock_, &mock_rtp_payload_feedback_, 0, true, 0) { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 framer_.ReleaseFrame(frame.frame_id); | 324 framer_.ReleaseFrame(frame.frame_id); |
| 325 EXPECT_TRUE(framer_.GetEncodedAudioFrame(&frame, &rtp_timestamp, | 325 EXPECT_TRUE(framer_.GetEncodedAudioFrame(&frame, &rtp_timestamp, |
| 326 &next_frame)); | 326 &next_frame)); |
| 327 EXPECT_TRUE(next_frame); | 327 EXPECT_TRUE(next_frame); |
| 328 EXPECT_EQ(256u, frame.frame_id); | 328 EXPECT_EQ(256u, frame.frame_id); |
| 329 framer_.ReleaseFrame(frame.frame_id); | 329 framer_.ReleaseFrame(frame.frame_id); |
| 330 } | 330 } |
| 331 | 331 |
| 332 } // namespace cast | 332 } // namespace cast |
| 333 } // namespace media | 333 } // namespace media |
| OLD | NEW |