Index: webrtc/base/helpers_unittest.cc |
diff --git a/webrtc/base/helpers_unittest.cc b/webrtc/base/helpers_unittest.cc |
index 6ea0167e986327be369e02b4b012d4d9abb2fffd..83cc68591995b5dfdcb2331e84ac0f3d006ce693 100644 |
--- a/webrtc/base/helpers_unittest.cc |
+++ b/webrtc/base/helpers_unittest.cc |
@@ -43,16 +43,23 @@ TEST_F(RandomTest, TestCreateRandomString) { |
EXPECT_EQ(256U, random2.size()); |
} |
+TEST_F(RandomTest, TestCreateRandomUuid) { |
+ std::string random = CreateRandomUuid(); |
+ EXPECT_EQ(36U, random.size()); |
+} |
+ |
TEST_F(RandomTest, TestCreateRandomForTest) { |
// Make sure we get the output we expect. |
SetRandomTestMode(true); |
EXPECT_EQ(2154761789U, CreateRandomId()); |
EXPECT_EQ("h0ISP4S5SJKH/9EY", CreateRandomString(16)); |
+ EXPECT_EQ("41706e92-cdd3-46d9-a22d-8ff1737ffb11", CreateRandomUuid()); |
// Reset and make sure we get the same output. |
SetRandomTestMode(true); |
EXPECT_EQ(2154761789U, CreateRandomId()); |
EXPECT_EQ("h0ISP4S5SJKH/9EY", CreateRandomString(16)); |
+ EXPECT_EQ("41706e92-cdd3-46d9-a22d-8ff1737ffb11", CreateRandomUuid()); |
// Test different character sets. |
SetRandomTestMode(true); |