| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2006 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 <math.h> | 11 #include <math.h> |
| 12 #include <time.h> | 12 #include <time.h> |
| 13 #if defined(WEBRTC_POSIX) | 13 #if defined(WEBRTC_POSIX) |
| 14 #include <netinet/in.h> | 14 #include <netinet/in.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #include <memory> | 17 #include <memory> |
| 18 | 18 |
| 19 #include "webrtc/base/arraysize.h" | 19 #include "webrtc/rtc_base/arraysize.h" |
| 20 #include "webrtc/base/fakeclock.h" | 20 #include "webrtc/rtc_base/fakeclock.h" |
| 21 #include "webrtc/base/gunit.h" | 21 #include "webrtc/rtc_base/gunit.h" |
| 22 #include "webrtc/base/logging.h" | 22 #include "webrtc/rtc_base/logging.h" |
| 23 #include "webrtc/base/ptr_util.h" | 23 #include "webrtc/rtc_base/ptr_util.h" |
| 24 #include "webrtc/base/testclient.h" | 24 #include "webrtc/rtc_base/testclient.h" |
| 25 #include "webrtc/base/testutils.h" | 25 #include "webrtc/rtc_base/testutils.h" |
| 26 #include "webrtc/base/thread.h" | 26 #include "webrtc/rtc_base/thread.h" |
| 27 #include "webrtc/base/timeutils.h" | 27 #include "webrtc/rtc_base/timeutils.h" |
| 28 #include "webrtc/base/virtualsocketserver.h" | 28 #include "webrtc/rtc_base/virtualsocketserver.h" |
| 29 | 29 |
| 30 using namespace rtc; | 30 using namespace rtc; |
| 31 | 31 |
| 32 using webrtc::testing::SSE_CLOSE; | 32 using webrtc::testing::SSE_CLOSE; |
| 33 using webrtc::testing::SSE_ERROR; | 33 using webrtc::testing::SSE_ERROR; |
| 34 using webrtc::testing::SSE_OPEN; | 34 using webrtc::testing::SSE_OPEN; |
| 35 using webrtc::testing::SSE_READ; | 35 using webrtc::testing::SSE_READ; |
| 36 using webrtc::testing::SSE_WRITE; | 36 using webrtc::testing::SSE_WRITE; |
| 37 using webrtc::testing::StreamSink; | 37 using webrtc::testing::StreamSink; |
| 38 | 38 |
| (...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 << " N=" << kTestSamples[sidx]; | 1137 << " N=" << kTestSamples[sidx]; |
| 1138 EXPECT_NEAR(kStdDev, stddev, 0.1 * kStdDev) | 1138 EXPECT_NEAR(kStdDev, stddev, 0.1 * kStdDev) |
| 1139 << "M=" << kTestMean[midx] | 1139 << "M=" << kTestMean[midx] |
| 1140 << " SD=" << kStdDev | 1140 << " SD=" << kStdDev |
| 1141 << " N=" << kTestSamples[sidx]; | 1141 << " N=" << kTestSamples[sidx]; |
| 1142 delete f; | 1142 delete f; |
| 1143 } | 1143 } |
| 1144 } | 1144 } |
| 1145 } | 1145 } |
| 1146 } | 1146 } |
| OLD | NEW |