#include "components/supervised_user/core/browser/api_access_token_fetcher.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/types/expected.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/identity_manager/access_token_fetcher.h"
#include "components/signin/public/identity_manager/access_token_info.h"
#include "components/signin/public/identity_manager/account_info.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/supervised_user/core/browser/fetcher_config.h"
#include "google_apis/gaia/google_service_auth_error.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace supervised_user {
namespace {
BindOnce;
expected;
OnceCallback;
Time;
unexpected;
Unretained;
TaskEnvironment;
AccessTokenFetcher;
AccessTokenInfo;
ConsentLevel;
IdentityTestEnvironment;
class ApiAccessTokenFetcherTest
: public ::testing::TestWithParam<AccessTokenConfig> { … };
TEST_P(ApiAccessTokenFetcherTest, ReadToken) { … }
TEST_P(ApiAccessTokenFetcherTest, AuthError) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}