OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 #include "webrtc/base/scoped_ptr.h" | 14 #include "webrtc/base/scoped_ptr.h" |
15 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" | 15 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
16 #include "webrtc/system_wrappers/include/tick_util.h" | 16 #include "webrtc/system_wrappers/include/tick_util.h" |
17 #include "webrtc/video_engine/call_stats.h" | 17 #include "webrtc/video_engine/call_stats.h" |
18 | 18 |
19 using ::testing::_; | 19 using ::testing::_; |
20 using ::testing::AnyNumber; | 20 using ::testing::AnyNumber; |
21 using ::testing::Return; | 21 using ::testing::Return; |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class MockStatsObserver : public CallStatsObserver { | 25 class MockStatsObserver : public CallStatsObserver { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 rtcp_rtt_stats->OnRttUpdate(kRttLow); | 194 rtcp_rtt_stats->OnRttUpdate(kRttLow); |
195 rtcp_rtt_stats->OnRttUpdate(kRttHigh); | 195 rtcp_rtt_stats->OnRttUpdate(kRttHigh); |
196 EXPECT_CALL(stats_observer, OnRttUpdate(kAvgRtt, kRttHigh)).Times(1); | 196 EXPECT_CALL(stats_observer, OnRttUpdate(kAvgRtt, kRttHigh)).Times(1); |
197 call_stats_->Process(); | 197 call_stats_->Process(); |
198 EXPECT_EQ(kAvgRtt, rtcp_rtt_stats->LastProcessedRtt()); | 198 EXPECT_EQ(kAvgRtt, rtcp_rtt_stats->LastProcessedRtt()); |
199 | 199 |
200 call_stats_->DeregisterStatsObserver(&stats_observer); | 200 call_stats_->DeregisterStatsObserver(&stats_observer); |
201 } | 201 } |
202 | 202 |
203 } // namespace webrtc | 203 } // namespace webrtc |
OLD | NEW |