| 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 #include <algorithm> | 10 #include <algorithm> | 
| (...skipping 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1937     bool use_red_; | 1937     bool use_red_; | 
| 1938     Call* sender_call_; | 1938     Call* sender_call_; | 
| 1939     Call* receiver_call_; | 1939     Call* receiver_call_; | 
| 1940     int64_t start_runtime_ms_; | 1940     int64_t start_runtime_ms_; | 
| 1941   } test(use_rtx, use_red); | 1941   } test(use_rtx, use_red); | 
| 1942 | 1942 | 
| 1943   test::ClearHistograms(); | 1943   test::ClearHistograms(); | 
| 1944   RunBaseTest(&test, FakeNetworkPipe::Config()); | 1944   RunBaseTest(&test, FakeNetworkPipe::Config()); | 
| 1945 | 1945 | 
| 1946   // Delete the call for Call stats to be reported. | 1946   // Delete the call for Call stats to be reported. | 
|  | 1947   sender_call_.reset(); | 
| 1947   receiver_call_.reset(); | 1948   receiver_call_.reset(); | 
| 1948 | 1949 | 
| 1949   // Verify that stats have been updated once. | 1950   // Verify that stats have been updated once. | 
| 1950   EXPECT_EQ( | 1951   EXPECT_EQ( | 
| 1951       1, test::NumHistogramSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); | 1952       1, test::NumHistogramSamples("WebRTC.Call.VideoBitrateReceivedInKbps")); | 
| 1952   EXPECT_EQ(1, | 1953   EXPECT_EQ(1, | 
| 1953             test::NumHistogramSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); | 1954             test::NumHistogramSamples("WebRTC.Call.RtcpBitrateReceivedInBps")); | 
| 1954   EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.BitrateReceivedInKbps")); | 1955   EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.BitrateReceivedInKbps")); | 
|  | 1956   EXPECT_EQ( | 
|  | 1957       1, test::NumHistogramSamples("WebRTC.Call.EstimatedSendBitrateInKbps")); | 
|  | 1958   EXPECT_EQ(1, test::NumHistogramSamples("WebRTC.Call.PacerBitrateInKbps")); | 
| 1955 | 1959 | 
| 1956   EXPECT_EQ(1, test::NumHistogramSamples( | 1960   EXPECT_EQ(1, test::NumHistogramSamples( | 
| 1957       "WebRTC.Video.NackPacketsSentPerMinute")); | 1961       "WebRTC.Video.NackPacketsSentPerMinute")); | 
| 1958   EXPECT_EQ(1, test::NumHistogramSamples( | 1962   EXPECT_EQ(1, test::NumHistogramSamples( | 
| 1959       "WebRTC.Video.NackPacketsReceivedPerMinute")); | 1963       "WebRTC.Video.NackPacketsReceivedPerMinute")); | 
| 1960   EXPECT_EQ(1, test::NumHistogramSamples( | 1964   EXPECT_EQ(1, test::NumHistogramSamples( | 
| 1961       "WebRTC.Video.FirPacketsSentPerMinute")); | 1965       "WebRTC.Video.FirPacketsSentPerMinute")); | 
| 1962   EXPECT_EQ(1, test::NumHistogramSamples( | 1966   EXPECT_EQ(1, test::NumHistogramSamples( | 
| 1963       "WebRTC.Video.FirPacketsReceivedPerMinute")); | 1967       "WebRTC.Video.FirPacketsReceivedPerMinute")); | 
| 1964   EXPECT_EQ(1, test::NumHistogramSamples( | 1968   EXPECT_EQ(1, test::NumHistogramSamples( | 
| (...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3180   EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) | 3184   EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) | 
| 3181       << "Enabling RTX requires rtpmap: rtx negotiation."; | 3185       << "Enabling RTX requires rtpmap: rtx negotiation."; | 
| 3182   EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) | 3186   EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) | 
| 3183       << "Enabling RTP extensions require negotiation."; | 3187       << "Enabling RTP extensions require negotiation."; | 
| 3184 | 3188 | 
| 3185   VerifyEmptyNackConfig(default_receive_config.rtp.nack); | 3189   VerifyEmptyNackConfig(default_receive_config.rtp.nack); | 
| 3186   VerifyEmptyFecConfig(default_receive_config.rtp.fec); | 3190   VerifyEmptyFecConfig(default_receive_config.rtp.fec); | 
| 3187 } | 3191 } | 
| 3188 | 3192 | 
| 3189 }  // namespace webrtc | 3193 }  // namespace webrtc | 
| OLD | NEW | 
|---|