#include "google_apis/gaia/gaia_auth_util.h"
#include "base/base64url.h"
#include "google_apis/gaia/gaia_auth_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace gaia {
namespace {
const char kGaiaId[] = …;
}
TEST(GaiaAuthUtilTest, EmailAddressNoOp) { … }
TEST(GaiaAuthUtilTest, InvalidEmailAddress) { … }
TEST(GaiaAuthUtilTest, EmailAddressIgnoreCaps) { … }
TEST(GaiaAuthUtilTest, EmailAddressIgnoreDomainCaps) { … }
TEST(GaiaAuthUtilTest, EmailAddressRejectOneUsernameDot) { … }
TEST(GaiaAuthUtilTest, EmailAddressMatchWithOneUsernameDot) { … }
TEST(GaiaAuthUtilTest, EmailAddressIgnoreOneUsernameDot) { … }
TEST(GaiaAuthUtilTest, EmailAddressIgnoreOneUsernameDotAndIgnoreCaps) { … }
TEST(GaiaAuthUtilTest, EmailAddressIgnoreManyUsernameDots) { … }
TEST(GaiaAuthUtilTest, EmailAddressIgnoreConsecutiveUsernameDots) { … }
TEST(GaiaAuthUtilTest, EmailAddressDifferentOnesRejected) { … }
TEST(GaiaAuthUtilTest, GooglemailNotCanonicalizedToGmail) { … }
TEST(GaiaAuthUtilTest, CanonicalizeDomain) { … }
TEST(GaiaAuthUtilTest, ExtractDomainName) { … }
TEST(GaiaAuthUtilTest, IsGoogleInternalAccountEmail) { … }
TEST(GaiaAuthUtilTest, SanitizeMissingDomain) { … }
TEST(GaiaAuthUtilTest, SanitizeExistingDomain) { … }
TEST(GaiaAuthUtilTest, AreEmailsSame) { … }
TEST(GaiaAuthUtilTest, IsGoogleRobotAccountEmail) { … }
TEST(GaiaAuthUtilTest, GmailAndGooglemailAreSame) { … }
TEST(GaiaAuthUtilTest, HasGaiaSchemeHostPort) { … }
TEST(GaiaAuthUtilTest, ParseListAccountsData) { … }
TEST(GaiaAuthUtilTest, ParseListAccountsDataValidSession) { … }
TEST(GaiaAuthUtilTest, ParseListAccountsDataGaiaId) { … }
TEST(GaiaAuthUtilTest, ParseListAccountsWithSignedOutAccounts) { … }
TEST(GaiaAuthUtilTest, ParseListAccountsVerifiedAccounts) { … }
TEST(GaiaAuthUtilTest, ParseListAccountsAcceptsNull) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultApproved) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultApprovedEmptyData) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultApprovedEmptyGaiaId) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultNotApproved) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultEmpty) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultBase64UrlDisallowedPadding) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultInvalidBase64Url) { … }
TEST(GaiaAuthUtilTest, ParseConsentResultInvalidProto) { … }
TEST(GaiaAuthUtilTest, CreateBoundOAuthToken) { … }
TEST(GaiaAuthUtilTest, CreateBoundOAuthTokenEmpty) { … }
}