account_manager_test_util.cc 601 B

12345678910111213141516
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/account_manager_core/account_manager_test_util.h"
  5. #include "components/account_manager_core/account.h"
  6. namespace account_manager {
  7. Account CreateTestGaiaAccount(const std::string& raw_email) {
  8. // TODO(https://crbug.com/1150770): Use signin::GetTestGaiaIdForEmail here.
  9. AccountKey key(std::string("gaia_id_for_") + raw_email, AccountType::kGaia);
  10. return {key, raw_email};
  11. }
  12. } // namespace account_manager