#include "chrome/browser/enterprise/connectors/analysis/page_print_analysis_request.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "chrome/browser/enterprise/connectors/common.h"
#include "chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.h"
#include "components/enterprise/common/proto/connectors.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace enterprise_connectors {
static base::ReadOnlySharedMemoryRegion CreateFakePage(size_t page_size) { … }
constexpr std::pair<safe_browsing::BinaryUploadService::Result, size_t>
kTestValues[] = …;
class PagePrintAnalysisRequestTest
: public testing::TestWithParam<
std::pair<safe_browsing::BinaryUploadService::Result, size_t>> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PagePrintAnalysisRequestTest, CloudSizes) { … }
TEST_P(PagePrintAnalysisRequestTest, LocalSizes) { … }
TEST(PagePrintAnalysisRequest, GetRequestData) { … }
}