Switching to NSS random number generator and adding init method to unittests.

R=jiayl@webrtc.org, sergeuy@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/8259004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5505 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mallinath@webrtc.org
2014-02-07 23:22:00 +00:00
parent ad3035fc9e
commit 5a59ccbb6d
6 changed files with 41 additions and 10 deletions

View File

@@ -28,6 +28,7 @@
#include "talk/base/gunit.h"
#include "talk/base/helpers.h"
#include "talk/base/logging.h"
#include "talk/base/ssladapter.h"
#include "talk/base/timeutils.h"
#include "talk/p2p/base/stunrequest.h"
@@ -37,8 +38,13 @@ class StunRequestTest : public testing::Test,
public sigslot::has_slots<> {
public:
static void SetUpTestCase() {
talk_base::InitRandom(NULL, 0);
talk_base::InitializeSSL();
}
static void TearDownTestCase() {
talk_base::CleanupSSL();
}
StunRequestTest()
: manager_(talk_base::Thread::Current()),
request_count_(0), response_(NULL),