OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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/send_statistics_proxy.h" | 11 #include "webrtc/video/send_statistics_proxy.h" |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/test/gtest.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" |
| 20 #include "webrtc/test/gtest.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 namespace { | 23 namespace { |
24 const uint32_t kFirstSsrc = 17; | 24 const uint32_t kFirstSsrc = 17; |
25 const uint32_t kSecondSsrc = 42; | 25 const uint32_t kSecondSsrc = 42; |
26 const uint32_t kFirstRtxSsrc = 18; | 26 const uint32_t kFirstRtxSsrc = 18; |
27 const uint32_t kSecondRtxSsrc = 43; | 27 const uint32_t kSecondRtxSsrc = 43; |
28 | 28 |
29 const int kMinRequiredSamples = 200; | 29 const int kMinRequiredSamples = 200; |
30 const int kQpIdx0 = 21; | 30 const int kQpIdx0 = 21; |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 | 757 |
758 EXPECT_EQ( | 758 EXPECT_EQ( |
759 1, metrics::NumSamples("WebRTC.Video.Screenshare.FecBitrateSentInKbps")); | 759 1, metrics::NumSamples("WebRTC.Video.Screenshare.FecBitrateSentInKbps")); |
760 EXPECT_EQ(1, metrics::NumEvents( | 760 EXPECT_EQ(1, metrics::NumEvents( |
761 "WebRTC.Video.Screenshare.FecBitrateSentInKbps", | 761 "WebRTC.Video.Screenshare.FecBitrateSentInKbps", |
762 static_cast<int>((rtx_counters.fec.TotalBytes() * 2 * 8) / | 762 static_cast<int>((rtx_counters.fec.TotalBytes() * 2 * 8) / |
763 metrics::kMinRunTimeInSeconds / 1000))); | 763 metrics::kMinRunTimeInSeconds / 1000))); |
764 } | 764 } |
765 | 765 |
766 } // namespace webrtc | 766 } // namespace webrtc |
OLD | NEW |