|
Rewrote the PRNG using an xorshift* algorithm and moved the files from test/ to base/.
Created a simple unit test for the new random number generator. (It mostly tests
that the generated numbers are consistent with the intended distribution, e.g. uniform.
It is not a comprehensive test of the quality of the random numbers.)
Several assertions in OveruseDetectorTest seem to depend on the exact sequence of random numbers. I updated those numbers to work with the new PRNG.
Compute the standard deviation of the expected result in TestReorderFilter instead of passing an uncertainty parameter.
BUG= webrtc:5177
Committed: https://crrev.com/84e78f9102dfbe9fc17aecd8d9d816042425a294
Cr-Commit-Position: refs/heads/master@{#10965}
Total comments: 5
Total comments: 31
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+496 lines, -261 lines) |
Patch |
 |
M |
webrtc/base/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webrtc/base/base.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webrtc/base/base_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A + |
webrtc/base/random.h
|
View
|
1
2
3
4
5
|
4 chunks |
+26 lines, -15 lines |
0 comments
|
Download
|
 |
A |
webrtc/base/random.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
 |
A |
webrtc/base/random_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+302 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webrtc/call/rtc_event_log_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
9 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/remote_bitrate_estimator/bwe_simulations.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/remote_bitrate_estimator/overuse_detector_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
26 chunks |
+37 lines, -35 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/remote_bitrate_estimator/test/bwe_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h
|
View
|
1
2
|
5 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+18 lines, -44 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
D |
webrtc/test/random.h
|
View
|
|
1 chunk |
+0 lines, -71 lines |
0 comments
|
Download
|
 |
D |
webrtc/test/random.cc
|
View
|
|
1 chunk |
+0 lines, -72 lines |
0 comments
|
Download
|
 |
M |
webrtc/test/webrtc_test_common.gyp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
webrtc/voice_engine/test/auto_test/voe_output_test.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 28 (8 generated)
|