Home | History | Annotate | Download | only in base

Lines Matching full:guid

5 #include "base/guid.h"
16 bool IsGUIDv4(const std::string& guid) {
17 // The format of GUID version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx,
19 return base::IsValidGUID(guid) && guid[14] == '4' &&
20 (guid[19] == '8' || guid[19] == '9' || guid[19] == 'A' ||
21 guid[19] == 'a' || guid[19] == 'B' || guid[19] == 'b');
43 std::string guid = base::GenerateGUID();
44 EXPECT_TRUE(base::IsValidGUID(guid));
45 EXPECT_TRUE(base::IsValidGUID(base::StringToLowerASCII(guid)));
46 EXPECT_TRUE(base::IsValidGUID(StringToUpperASCII(guid)));