Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2725)

Unified Diff: base/guid_unittest.cc

Issue 546603002: Make base::IsValidGUID() accept GUID strings in lowercase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/guid.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/guid_unittest.cc
diff --git a/base/guid_unittest.cc b/base/guid_unittest.cc
index 18c04a9d3363d42f256d53a8dd9b915e22e5a5dc..e57eb7e0bb48249ecbd61cba34cd5ac550cd3a0d 100644
--- a/base/guid_unittest.cc
+++ b/base/guid_unittest.cc
@@ -6,6 +6,7 @@
#include <limits>
+#include "base/strings/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_POSIX)
@@ -27,6 +28,8 @@ TEST(GUIDTest, GUIDCorrectlyFormatted) {
for (int it = 0; it < kIterations; ++it) {
std::string guid = base::GenerateGUID();
EXPECT_TRUE(base::IsValidGUID(guid));
+ EXPECT_TRUE(base::IsValidGUID(base::StringToLowerASCII(guid)));
+ EXPECT_TRUE(base::IsValidGUID(StringToUpperASCII(guid)));
}
}
« no previous file with comments | « base/guid.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698