| Index: chrome/browser/chromeos/login/authenticator_unittest.cc
|
| diff --git a/chrome/browser/chromeos/login/authenticator_unittest.cc b/chrome/browser/chromeos/login/authenticator_unittest.cc
|
| index 48ab3785ccc87b123e0642fe8cd08e9a8c5d4327..d6bd14977709b63d7543e6af711e4a9767d31f0a 100644
|
| --- a/chrome/browser/chromeos/login/authenticator_unittest.cc
|
| +++ b/chrome/browser/chromeos/login/authenticator_unittest.cc
|
| @@ -23,19 +23,29 @@ TEST(AuthenticatorTest, EmailAddressIgnoreDomainCaps) {
|
| Authenticator::Canonicalize("UsEr@what.COM"));
|
| }
|
|
|
| -TEST(AuthenticatorTest, EmailAddressIgnoreOneUsernameDot) {
|
| - EXPECT_EQ(Authenticator::Canonicalize("us.er@what.com"),
|
| +TEST(AuthenticatorTest, EmailAddressRejectOneUsernameDot) {
|
| + EXPECT_NE(Authenticator::Canonicalize("u.ser@what.com"),
|
| Authenticator::Canonicalize("UsEr@what.com"));
|
| }
|
|
|
| -TEST(AuthenticatorTest, EmailAddressIgnoreManyUsernameDots) {
|
| +TEST(AuthenticatorTest, EmailAddressMatchWithOneUsernameDot) {
|
| EXPECT_EQ(Authenticator::Canonicalize("u.ser@what.com"),
|
| - Authenticator::Canonicalize("Us.E.r@what.com"));
|
| + Authenticator::Canonicalize("U.sEr@what.com"));
|
| +}
|
| +
|
| +TEST(AuthenticatorTest, EmailAddressIgnoreOneUsernameDot) {
|
| + EXPECT_EQ(Authenticator::Canonicalize("us.er@gmail.com"),
|
| + Authenticator::Canonicalize("UsEr@gmail.com"));
|
| +}
|
| +
|
| +TEST(AuthenticatorTest, EmailAddressIgnoreManyUsernameDots) {
|
| + EXPECT_EQ(Authenticator::Canonicalize("u.ser@gmail.com"),
|
| + Authenticator::Canonicalize("Us.E.r@gmail.com"));
|
| }
|
|
|
| TEST(AuthenticatorTest, EmailAddressIgnoreConsecutiveUsernameDots) {
|
| - EXPECT_EQ(Authenticator::Canonicalize("use.r@what.com"),
|
| - Authenticator::Canonicalize("Us....E.r@what.com"));
|
| + EXPECT_EQ(Authenticator::Canonicalize("use.r@gmail.com"),
|
| + Authenticator::Canonicalize("Us....E.r@gmail.com"));
|
| }
|
|
|
| TEST(AuthenticatorTest, EmailAddressDifferentOnesRejected) {
|
|
|