#ifndef CHROME_BROWSER_ENTERPRISE_CONNECTORS_TEST_DEEP_SCANNING_TEST_UTILS_H_
#define CHROME_BROWSER_ENTERPRISE_CONNECTORS_TEST_DEEP_SCANNING_TEST_UTILS_H_
#include <optional>
#include <set>
#include <string>
#include "base/containers/flat_map.h"
#include "base/functional/callback.h"
#include "base/memory/raw_ptr.h"
#include "base/values.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
#include "components/enterprise/buildflags/buildflags.h"
#include "components/enterprise/common/proto/connectors.pb.h"
#include "components/enterprise/data_controls/core/browser/verdict.h"
#include "components/safe_browsing/core/common/proto/realtimeapi.pb.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
namespace policy {
class MockCloudPolicyClient;
}
namespace enterprise_connectors::test {
class EventReportValidator { … };
class EventReportValidatorHelper { … };
#if BUILDFLAG(ENTERPRISE_CONTENT_ANALYSIS)
void SetAnalysisConnector(PrefService* prefs,
AnalysisConnector connector,
const std::string& pref_value,
bool machine_scope = true);
void SetOnSecurityEventReporting(
PrefService* prefs,
bool enabled,
const std::set<std::string>& enabled_event_names = std::set<std::string>(),
const std::map<std::string, std::vector<std::string>>&
enabled_opt_in_events =
std::map<std::string, std::vector<std::string>>(),
bool machine_scope = true);
void ClearAnalysisConnector(PrefService* prefs, AnalysisConnector connector);
#endif
#if !BUILDFLAG(IS_CHROMEOS_ASH)
void SetProfileDMToken(Profile* profile, const std::string& dm_token);
#endif
}
#endif