#include "components/safe_browsing/core/browser/sync/safe_browsing_primary_account_token_fetcher.h"
#include <memory>
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "components/safe_browsing/core/browser/safe_browsing_token_fetch_tracker.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace safe_browsing {
class SafeBrowsingPrimaryAccountTokenFetcherTest : public ::testing::Test { … };
TEST_F(SafeBrowsingPrimaryAccountTokenFetcherTest, Success) { … }
TEST_F(SafeBrowsingPrimaryAccountTokenFetcherTest, Failure) { … }
TEST_F(SafeBrowsingPrimaryAccountTokenFetcherTest,
SuccessWithConsentedPrimaryAccount) { … }
TEST_F(SafeBrowsingPrimaryAccountTokenFetcherTest,
FetcherDestroyedFromWithinOnTokenFetchedCallback) { … }
TEST_F(SafeBrowsingPrimaryAccountTokenFetcherTest,
FetcherDestroyedFromWithinOnTokenFetchedCallbackInvokedOnTimeout) { … }
TEST_F(SafeBrowsingPrimaryAccountTokenFetcherTest, TimeoutAfterSuccess) { … }
}