#include "components/enterprise/browser/reporting/fake_browser_report_generator_delegate.h"
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "base/files/file_path.h"
#include "components/enterprise/browser/reporting/browser_report_generator.h"
#include "components/enterprise/browser/reporting/real_time_report_controller.h"
#include "components/enterprise/browser/reporting/report_util.h"
#include "components/enterprise/browser/reporting/reporting_delegate_factory.h"
#include "components/version_info/channel.h"
namespace enterprise_management {
class ChromeUserProfileInfo;
class BrowserReport;
}
namespace policy {
class PolicyConversionsClient;
class CloudPolicyManager;
}
namespace enterprise_reporting::test {
FakeProfileReportGeneratorDelegate::~FakeProfileReportGeneratorDelegate() =
default;
bool FakeProfileReportGeneratorDelegate::Init(const base::FilePath& path) { … }
void FakeProfileReportGeneratorDelegate::GetSigninUserInfo(
enterprise_management::ChromeUserProfileInfo* report) { … }
void FakeProfileReportGeneratorDelegate::GetAffiliationInfo(
enterprise_management::ChromeUserProfileInfo* report) { … }
void FakeProfileReportGeneratorDelegate::GetExtensionInfo(
enterprise_management::ChromeUserProfileInfo* report) { … }
void FakeProfileReportGeneratorDelegate::GetExtensionRequest(
enterprise_management::ChromeUserProfileInfo* report) { … }
std::unique_ptr<policy::PolicyConversionsClient>
FakeProfileReportGeneratorDelegate::MakePolicyConversionsClient(
bool is_machine_scope) { … }
policy::CloudPolicyManager*
FakeProfileReportGeneratorDelegate::GetCloudPolicyManager(
bool is_machine_scope) { … }
FakeBrowserReportGeneratorDelegate::FakeBrowserReportGeneratorDelegate(
std::string_view executable_path)
: … { … }
FakeBrowserReportGeneratorDelegate::~FakeBrowserReportGeneratorDelegate() =
default;
std::string FakeBrowserReportGeneratorDelegate::GetExecutablePath() { … }
version_info::Channel FakeBrowserReportGeneratorDelegate::GetChannel() { … }
std::vector<BrowserReportGenerator::ReportedProfileData>
FakeBrowserReportGeneratorDelegate::GetReportedProfiles() { … }
bool FakeBrowserReportGeneratorDelegate::IsExtendedStableChannel() { … }
void FakeBrowserReportGeneratorDelegate::GenerateBuildStateInfo(
enterprise_management::BrowserReport* report) { … }
FakeReportingDelegateFactory::FakeReportingDelegateFactory(
std::string_view executable_path)
: … { … }
FakeReportingDelegateFactory::~FakeReportingDelegateFactory() = default;
std::unique_ptr<BrowserReportGenerator::Delegate>
FakeReportingDelegateFactory::GetBrowserReportGeneratorDelegate() const { … }
std::unique_ptr<ProfileReportGenerator::Delegate>
FakeReportingDelegateFactory::GetProfileReportGeneratorDelegate() const { … }
std::unique_ptr<ReportGenerator::Delegate>
FakeReportingDelegateFactory::GetReportGeneratorDelegate() const { … }
std::unique_ptr<ReportScheduler::Delegate>
FakeReportingDelegateFactory::GetReportSchedulerDelegate() const { … }
std::unique_ptr<RealTimeReportGenerator::Delegate>
FakeReportingDelegateFactory::GetRealTimeReportGeneratorDelegate() const { … }
std::unique_ptr<RealTimeReportController::Delegate>
FakeReportingDelegateFactory::GetRealTimeReportControllerDelegate() const { … }
}