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

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

Issue 18919005: Migrate from googleurl/ includes to url/ ones in the remaining top-level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make googleurl a temp include rule - to prevent others including it again Created 7 years, 5 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_oauth_client.cc » ('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 "google_apis/gaia/gaia_auth_util.h" 5 #include "google_apis/gaia/gaia_auth_util.h"
6 6
7 #include "googleurl/src/gurl.h"
8 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "url/gurl.h"
9 9
10 namespace gaia { 10 namespace gaia {
11 11
12 TEST(GaiaAuthUtilTest, EmailAddressNoOp) { 12 TEST(GaiaAuthUtilTest, EmailAddressNoOp) {
13 const char lower_case[] = "user@what.com"; 13 const char lower_case[] = "user@what.com";
14 EXPECT_EQ(lower_case, CanonicalizeEmail(lower_case)); 14 EXPECT_EQ(lower_case, CanonicalizeEmail(lower_case));
15 } 15 }
16 16
17 TEST(GaiaAuthUtilTest, EmailAddressIgnoreCaps) { 17 TEST(GaiaAuthUtilTest, EmailAddressIgnoreCaps) {
18 EXPECT_EQ(CanonicalizeEmail("user@what.com"), 18 EXPECT_EQ(CanonicalizeEmail("user@what.com"),
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://www.google.com/"))); 102 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://www.google.com/")));
103 EXPECT_FALSE(IsGaiaSignonRealm(GURL("http://www.google.com/"))); 103 EXPECT_FALSE(IsGaiaSignonRealm(GURL("http://www.google.com/")));
104 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://google.com/"))); 104 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://google.com/")));
105 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://mail.google.com/"))); 105 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://mail.google.com/")));
106 106
107 // Other https URLs are not valid. 107 // Other https URLs are not valid.
108 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://www.example.com/"))); 108 EXPECT_FALSE(IsGaiaSignonRealm(GURL("https://www.example.com/")));
109 } 109 }
110 110
111 } // namespace gaia 111 } // namespace gaia
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_auth_util.cc ('k') | google_apis/gaia/gaia_oauth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698