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

Unified Diff: remoting/host/access_verifier_unittest.cc

Issue 6518012: Use case-insensitive comparison when comparing JIDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/remoting/host
Patch Set: added test Created 9 years, 10 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
« remoting/host/access_verifier.cc ('K') | « remoting/host/access_verifier.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/access_verifier_unittest.cc
diff --git a/remoting/host/access_verifier_unittest.cc b/remoting/host/access_verifier_unittest.cc
index 682cf1f24be07e662f52c3c32871314e028b2264..26f760157fc1fcb0a987fd8de6f390078396094f 100644
--- a/remoting/host/access_verifier_unittest.cc
+++ b/remoting/host/access_verifier_unittest.cc
@@ -38,6 +38,7 @@ TEST_F(AccessVerifierTest, VerifyPermissions) {
InitConfig();
ASSERT_TRUE(target.Init(config_));
EXPECT_TRUE(target.VerifyPermissions("host@domain.com/123123", ""));
+ EXPECT_TRUE(target.VerifyPermissions("hOsT@domain.com/123123", ""));
EXPECT_FALSE(target.VerifyPermissions("host@domain.com", ""));
EXPECT_FALSE(target.VerifyPermissions("otherhost@domain.com/123123", ""));
EXPECT_FALSE(target.VerifyPermissions("host@otherdomain.com/123123", ""));
« remoting/host/access_verifier.cc ('K') | « remoting/host/access_verifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698