Making video codecs test framework integration test execute in a reproducable fashion.
Fixed reproducable random behavior in packet_manipulator.h. Test is now fully reproducable (runs on only one core) so much tighter limits are now set for the SSIM/PSNR values for the encoding/decoding (verified on all platforms) BUG= TEST=out/Debug/video_codecs_test_framework_integrationtests in Debug+Release on Linux, Mac, Windows and in Linux Valgrind. Review URL: https://webrtc-codereview.appspot.com/381005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1649 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
|
||||
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
@@ -46,10 +46,7 @@ class PacketRelatedTest: public testing::Test {
|
||||
memcpy(packet_data_pointer_ + kPacketSizeInBytes * 2, packet3_, 1);
|
||||
}
|
||||
virtual ~PacketRelatedTest() {}
|
||||
void SetUp() {
|
||||
// Initialize the random generator with 0 to get deterministic behavior
|
||||
srand(0);
|
||||
}
|
||||
void SetUp() {}
|
||||
void TearDown() {}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user