Lines Matching full:guid
5 #include "base/guid.h"
19 bool IsGUIDv4(const std::string& guid) { in IsGUIDv4() argument
20 // The format of GUID version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, in IsGUIDv4()
22 return IsValidGUID(guid) && guid[14] == '4' && in IsGUIDv4()
23 (guid[19] == '8' || guid[19] == '9' || guid[19] == 'A' || in IsGUIDv4()
24 guid[19] == 'a' || guid[19] == 'B' || guid[19] == 'b'); in IsGUIDv4()
44 std::string guid = GenerateGUID(); in TEST() local
45 EXPECT_TRUE(IsValidGUID(guid)); in TEST()
46 EXPECT_TRUE(IsValidGUIDOutputString(guid)); in TEST()
47 EXPECT_TRUE(IsValidGUID(ToLowerASCII(guid))); in TEST()
48 EXPECT_TRUE(IsValidGUID(ToUpperASCII(guid))); in TEST()