chromium/chrome/browser/extensions/api/identity/identity_api_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/extensions/api/identity/identity_api.h"

#include <memory>
#include <optional>

#include "base/task/single_thread_task_runner.h"
#include "base/test/mock_callback.h"
#include "base/test/test_future.h"
#include "chrome/browser/extensions/test_extension_prefs.h"
#include "chrome/test/base/testing_profile.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/event_router.h"
#include "google_apis/gaia/core_account_id.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
Mock;
constexpr char kTestAccount[] =;

namespace extensions {

class IdentityAPITest : public testing::Test {};

// Tests that all accounts in extensions is enabled for regular profiles.
TEST_F(IdentityAPITest, AllAccountsExtensionEnabled) {}

TEST_F(IdentityAPITest, GetGaiaIdForExtension) {}

TEST_F(IdentityAPITest, GetGaiaIdForExtensionSurvivesShutdown) {}

TEST_F(IdentityAPITest, EraseGaiaIdForExtension) {}

TEST_F(IdentityAPITest, GaiaIdErasedAfterSignOut) {}

#if !BUILDFLAG(IS_CHROMEOS_ASH)
TEST_F(IdentityAPITest, GaiaIdErasedAfterClearPrimaryAccount) {}
#endif  // !BUILDFLAG(IS_CHROMEOS_ASH)

TEST_F(IdentityAPITest, GaiaIdErasedAfterSignOutTwoAccounts) {}

TEST_F(IdentityAPITest, GaiaIdErasedAfterSignOutAfterShutdown) {}

TEST_F(IdentityAPITest, FireOnAccountSignInChangedOnlyIfSignedIn) {}

#if BUILDFLAG(ENABLE_DICE_SUPPORT)
TEST_F(IdentityAPITest, MaybeShowChromeSigninDialogChromeAlreadySignedIn) {}

TEST_F(IdentityAPITest, MaybeShowChromeSigninDialogNoAccountsOnTheWeb) {}

TEST_F(IdentityAPITest, MaybeShowChromeSigninDialog) {}

TEST_F(IdentityAPITest, MaybeShowChromeSigninDialogConcurrent) {}
#endif
}  // namespace extensions