Home | History | Annotate | Download | only in base

Lines Matching refs:guid

5 #include "base/guid.h"
21 bool IsGUIDv4(const std::string& guid) {
22 // The format of GUID version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx,
24 return IsValidGUID(guid) && guid[14] == '4' &&
25 (guid[19] == '8' || guid[19] == '9' || guid[19] == 'A' ||
26 guid[19] == 'a' || guid[19] == 'B' || guid[19] == 'b');
47 std::string guid = GenerateGUID();
48 EXPECT_TRUE(IsValidGUID(guid));
49 EXPECT_TRUE(IsValidGUID(ToLowerASCII(guid)));
50 EXPECT_TRUE(IsValidGUID(ToUpperASCII(guid)));