#include "components/safe_browsing/core/browser/db/allowlist_checker_client.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "components/safe_browsing/core/browser/db/database_manager.h"
#include "components/safe_browsing/core/browser/db/test_database_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace safe_browsing {
_;
DoAll;
Return;
SaveArg;
BoolCallback;
MockBoolCallback;
namespace {
class MockSafeBrowsingDatabaseManager : public TestSafeBrowsingDatabaseManager { … };
}
class AllowlistCheckerClientTest : public testing::Test { … };
TEST_F(AllowlistCheckerClientTest, TestCsdListMatch) { … }
TEST_F(AllowlistCheckerClientTest, TestCsdListNoMatch) { … }
TEST_F(AllowlistCheckerClientTest, TestCsdListAsyncNoMatch) { … }
TEST_F(AllowlistCheckerClientTest, TestCsdListAsyncTimeout) { … }
}