#include "components/enterprise/browser/reporting/report_request_queue_generator.h"
#include <vector>
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/profiles/profile_attributes_init_params.h"
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/account_id/account_id.h"
#include "components/enterprise/browser/reporting/browser_report_generator.h"
#include "components/enterprise/browser/reporting/report_request.h"
#include "components/policy/core/common/mock_policy_service.h"
#include "components/policy/core/common/policy_map.h"
#include "components/sync_preferences/pref_service_syncable.h"
#include "content/public/test/browser_task_environment.h"
#include "ppapi/buildflags/buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/enterprise/reporting/reporting_delegate_factory_android.h"
#else
#include "chrome/browser/enterprise/reporting/reporting_delegate_factory_desktop.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_builder.h"
#endif
#if BUILDFLAG(ENABLE_PLUGINS)
#include "content/public/browser/plugin_service.h"
#endif
em;
namespace enterprise_reporting {
namespace {
const char kIdleProfileName1[] = …;
const char kIdleProfileName2[] = …;
const char kActiveProfileName1[] = …;
const char kActiveProfileName2[] = …;
}
class ReportRequestQueueGeneratorTest : public ::testing::Test { … };
TEST_F(ReportRequestQueueGeneratorTest, GenerateSingleReport) { … }
TEST_F(ReportRequestQueueGeneratorTest, BasicReportIsTooBig) { … }
TEST_F(ReportRequestQueueGeneratorTest, ChromePoliciesCollection) { … }
#if !BUILDFLAG(IS_ANDROID)
TEST_F(ReportRequestQueueGeneratorTest, GenerateReport) { … }
TEST_F(ReportRequestQueueGeneratorTest, GenerateActiveProfiles) { … }
TEST_F(ReportRequestQueueGeneratorTest, ReportSeparation) { … }
TEST_F(ReportRequestQueueGeneratorTest, ProfileReportIsTooBig) { … }
#endif
}