#include "chrome/browser/safe_browsing/cloud_content_scanning/cloud_binary_upload_service.h"
#include "base/test/test_future.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/enterprise/connectors/connectors_service.h"
#include "chrome/browser/enterprise/connectors/test/management_context_mixin.h"
#include "chrome/browser/enterprise/connectors/test/test_constants.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/cloud_content_scanning/cloud_binary_upload_service_factory.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/test/base/mixin_based_in_process_browser_test.h"
#include "components/keyed_service/core/keyed_service.h"
#include "content/public/test/browser_test.h"
namespace safe_browsing {
namespace {
constexpr char kData[] = …;
constexpr char kTestUrl[] = …;
constexpr char kTestAccessToken[] = …;
constexpr char kTestInstanceId[] = …;
struct ManagementContextDeviceRequest { … };
constexpr ManagementContextDeviceRequest kTestCases[] = …;
class TestSafeBrowsingTokenFetcher : public SafeBrowsingTokenFetcher { … };
class TestBinaryFCMService : public BinaryFCMService { … };
class TestCloudBinaryUploadService : public CloudBinaryUploadService { … };
class TestRequest : public CloudBinaryUploadService::Request { … };
class CloudBinaryUploadServiceRequestValidationBrowserTest
: public MixinBasedInProcessBrowserTest,
public testing::WithParamInterface<ManagementContextDeviceRequest> { … };
}
IN_PROC_BROWSER_TEST_P(CloudBinaryUploadServiceRequestValidationBrowserTest,
Paste) { … }
IN_PROC_BROWSER_TEST_P(CloudBinaryUploadServiceRequestValidationBrowserTest,
FileAttach) { … }
IN_PROC_BROWSER_TEST_P(CloudBinaryUploadServiceRequestValidationBrowserTest,
FileDownload) { … }
IN_PROC_BROWSER_TEST_P(CloudBinaryUploadServiceRequestValidationBrowserTest,
Print) { … }
INSTANTIATE_TEST_SUITE_P(…);
}