OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <limits> | 11 #include <limits> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/base/scoped_ptr.h" | 18 #include "webrtc/base/scoped_ptr.h" |
19 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" | 19 #include "webrtc/modules/remote_bitrate_estimator/include/mock/mock_remote_bitra
te_estimator.h" |
20 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" | 20 #include "webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h" |
21 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
23 #include "webrtc/modules/utility/interface/mock/mock_process_thread.h" | 23 #include "webrtc/modules/utility/include/mock/mock_process_thread.h" |
24 #include "webrtc/system_wrappers/include/clock.h" | 24 #include "webrtc/system_wrappers/include/clock.h" |
25 | 25 |
26 using ::testing::_; | 26 using ::testing::_; |
27 using ::testing::Invoke; | 27 using ::testing::Invoke; |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 namespace test { | 30 namespace test { |
31 | 31 |
32 class TransportFeedbackAdapterTest : public ::testing::Test { | 32 class TransportFeedbackAdapterTest : public ::testing::Test { |
33 public: | 33 public: |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 })); | 316 })); |
317 adapter_->OnTransportFeedback(*feedback.get()); | 317 adapter_->OnTransportFeedback(*feedback.get()); |
318 | 318 |
319 sent_packets.push_back(info); | 319 sent_packets.push_back(info); |
320 | 320 |
321 ComparePacketVectors(sent_packets, received_feedback); | 321 ComparePacketVectors(sent_packets, received_feedback); |
322 } | 322 } |
323 | 323 |
324 } // namespace test | 324 } // namespace test |
325 } // namespace webrtc | 325 } // namespace webrtc |
OLD | NEW |