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

Side by Side Diff: google_apis/gaia/gaia_auth_util_unittest.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/gaia/gaia_auth_util.cc ('k') | google_apis/gaia/gaia_authenticator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_auth_util.cc ('k') | google_apis/gaia/gaia_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698