| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 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 "webrtc/video/receive_statistics_proxy.h" | 11 #include "webrtc/video/receive_statistics_proxy.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "webrtc/api/video/i420_buffer.h" | |
| 16 #include "webrtc/api/video/video_frame.h" | 15 #include "webrtc/api/video/video_frame.h" |
| 17 #include "webrtc/api/video/video_rotation.h" | 16 #include "webrtc/api/video/video_rotation.h" |
| 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h" | 17 #include "webrtc/modules/video_coding/include/video_codec_interface.h" |
| 19 #include "webrtc/system_wrappers/include/metrics.h" | 18 #include "webrtc/system_wrappers/include/metrics.h" |
| 20 #include "webrtc/system_wrappers/include/metrics_default.h" | 19 #include "webrtc/system_wrappers/include/metrics_default.h" |
| 21 #include "webrtc/test/gtest.h" | 20 #include "webrtc/test/gtest.h" |
| 22 | 21 |
| 23 namespace webrtc { | 22 namespace webrtc { |
| 24 namespace { | 23 namespace { |
| 25 const int64_t kFreqOffsetProcessIntervalInMs = 40000; | 24 const int64_t kFreqOffsetProcessIntervalInMs = 40000; |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 kJitterBufferMs)); | 506 kJitterBufferMs)); |
| 508 EXPECT_EQ(1, | 507 EXPECT_EQ(1, |
| 509 metrics::NumEvents("WebRTC.Video.TargetDelayInMs", kTargetDelayMs)); | 508 metrics::NumEvents("WebRTC.Video.TargetDelayInMs", kTargetDelayMs)); |
| 510 EXPECT_EQ( | 509 EXPECT_EQ( |
| 511 1, metrics::NumEvents("WebRTC.Video.CurrentDelayInMs", kCurrentDelayMs)); | 510 1, metrics::NumEvents("WebRTC.Video.CurrentDelayInMs", kCurrentDelayMs)); |
| 512 EXPECT_EQ(1, | 511 EXPECT_EQ(1, |
| 513 metrics::NumEvents("WebRTC.Video.OnewayDelayInMs", kTargetDelayMs)); | 512 metrics::NumEvents("WebRTC.Video.OnewayDelayInMs", kTargetDelayMs)); |
| 514 } | 513 } |
| 515 | 514 |
| 516 } // namespace webrtc | 515 } // namespace webrtc |
| OLD | NEW |