OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/net/gaia/gaia_auth_util.h" | 5 #include "google_apis/gaia/gaia_auth_util.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace gaia { | 9 namespace gaia { |
10 | 10 |
11 TEST(GaiaAuthUtilTest, EmailAddressNoOp) { | 11 TEST(GaiaAuthUtilTest, EmailAddressNoOp) { |
12 const char lower_case[] = "user@what.com"; | 12 const char lower_case[] = "user@what.com"; |
13 EXPECT_EQ(lower_case, CanonicalizeEmail(lower_case)); | 13 EXPECT_EQ(lower_case, CanonicalizeEmail(lower_case)); |
14 } | 14 } |
15 | 15 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 TEST(GaiaAuthUtilTest, SanitizeMissingDomain) { | 78 TEST(GaiaAuthUtilTest, SanitizeMissingDomain) { |
79 EXPECT_EQ("nodomain@gmail.com", SanitizeEmail("nodomain")); | 79 EXPECT_EQ("nodomain@gmail.com", SanitizeEmail("nodomain")); |
80 } | 80 } |
81 | 81 |
82 TEST(GaiaAuthUtilTest, SanitizeExistingDomain) { | 82 TEST(GaiaAuthUtilTest, SanitizeExistingDomain) { |
83 const char existing[] = "test@example.com"; | 83 const char existing[] = "test@example.com"; |
84 EXPECT_EQ(existing, SanitizeEmail(existing)); | 84 EXPECT_EQ(existing, SanitizeEmail(existing)); |
85 } | 85 } |
86 | 86 |
87 } // namespace gaia | 87 } // namespace gaia |
OLD | NEW |