#include "chrome/browser/permissions/crowd_deny_safe_browsing_request.h"
#include "base/memory/scoped_refptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "chrome/browser/permissions/crowd_deny_fake_safe_browsing_database_manager.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace {
constexpr char kTestOriginFoo[] = …;
constexpr char kTestOriginBar[] = …;
}
class CrowdDenySafeBrowsingRequestTest : public testing::Test { … };
TEST_F(CrowdDenySafeBrowsingRequestTest, Acceptable_SynchronousCompletion) { … }
TEST_F(CrowdDenySafeBrowsingRequestTest, Acceptable_UnavailableMetaData) { … }
TEST_F(CrowdDenySafeBrowsingRequestTest, Acceptable_UnknownAPIName) { … }
TEST_F(CrowdDenySafeBrowsingRequestTest, Spammy) { … }
TEST_F(CrowdDenySafeBrowsingRequestTest, Timeout) { … }
TEST_F(CrowdDenySafeBrowsingRequestTest, AbandonedImmediately) { … }
TEST_F(CrowdDenySafeBrowsingRequestTest, AbandonedWhileCheckPending) { … }