Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc

Issue 1457023002: Rewrote the PRNG using an xorshift* algorithm and moved the files from test/ to base/. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework_unittest.cc ('k') | webrtc/test/random.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc
index fcde0e4c17d7ef68ed9be05cf7c58ee915c38006..85bbb404a4401abcaf91aff92b0979ff5961a42d 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/report_block_unittest.cc
@@ -13,7 +13,7 @@
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
-#include "webrtc/test/random.h"
+#include "webrtc/base/random.h"
using webrtc::rtcp::ReportBlock;
@@ -42,7 +42,7 @@ TEST(RtcpPacketReportBlockTest, ParseChecksLength) {
TEST(RtcpPacketReportBlockTest, ParseAnyData) {
uint8_t buffer[kBufferLength];
// Fill buffer with semi-random data.
- test::Random generator(testing::FLAGS_gtest_random_seed);
+ Random generator(0x256F8A285EC829ull);
for (size_t i = 0; i < kBufferLength; ++i)
buffer[i] = static_cast<uint8_t>(generator.Rand(0, 0xff));
« no previous file with comments | « webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework_unittest.cc ('k') | webrtc/test/random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698