blob: 356e3385e882e917746eca249ae86470ccd78e39 [file]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/signin/account_id_from_account_info.h"
#include "testing/gtest/include/gtest/gtest.h"
class AccountIdFromAccountInfoTest : public testing::Test {};
// Tests that AccountIdFromAccountInfo() passes along a canonicalized email to
// AccountId.
TEST(AccountIdFromAccountInfoTest,
AccountIdFromAccountInfo_CanonicalizesRawEmail) {
AccountInfo info;
info.email = "test.email@gmail.com";
info.gaia = "test_id";
EXPECT_EQ("testemail@gmail.com",
AccountIdFromAccountInfo(info).GetUserEmail());
}