#include "chrome/browser/enterprise/reporting/extension_request/extension_request_report_generator.h"
#include "base/json/json_reader.h"
#include "base/json/values_util.h"
#include "base/time/time.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/enterprise/reporting/prefs.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/enterprise/common/proto/extensions_workflow_events.pb.h"
#include "components/policy/core/common/cloud/cloud_policy_util.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/pref_names.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace enterprise_reporting {
namespace {
constexpr int kTimeStamp = …;
constexpr char kJustification[] = …;
constexpr char kProfileName[] = …;
constexpr char kExtensionId1[] = …;
constexpr char kExtensionId2[] = …;
constexpr char kAllowedExtensionSettings[] = …;
constexpr char kBlockedExtensionSettings[] = …;
}
class ExtensionRequestReportGeneratorTest : public ::testing::Test { … };
TEST_F(ExtensionRequestReportGeneratorTest, AddRequests) { … }
TEST_F(ExtensionRequestReportGeneratorTest, RemovalRequest) { … }
TEST_F(ExtensionRequestReportGeneratorTest, ApprovedRequest) { … }
TEST_F(ExtensionRequestReportGeneratorTest, RejectedRequest) { … }
}