chromium/components/safe_browsing/core/browser/safe_browsing_token_fetch_tracker_unittest.cc

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

#include "components/safe_browsing/core/browser/safe_browsing_token_fetch_tracker.h"
#include <memory>

#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace safe_browsing {

class SafeBrowsingTokenFetchTrackerTest : public ::testing::Test {};

TEST_F(SafeBrowsingTokenFetchTrackerTest, Success) {}

TEST_F(SafeBrowsingTokenFetchTrackerTest, MultipleRequests) {}

TEST_F(SafeBrowsingTokenFetchTrackerTest, FetcherDestruction) {}

// Verifies that destruction of a SafeBrowsingTokenFetchTracker instance from
// within the client callback that the token was fetched doesn't cause a crash.
TEST_F(SafeBrowsingTokenFetchTrackerTest,
       FetcherDestroyedFromWithinOnTokenFetchedCallback) {}

TEST_F(SafeBrowsingTokenFetchTrackerTest, Timeout) {}

}  // namespace safe_browsing