#ifndef CHROME_UPDATER_DEVICE_MANAGEMENT_DM_POLICY_BUILDER_FOR_TESTING_H_
#define CHROME_UPDATER_DEVICE_MANAGEMENT_DM_POLICY_BUILDER_FOR_TESTING_H_
#include <stdint.h>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "chrome/updater/device_management/dm_message.h"
#include "components/policy/proto/device_management_backend.pb.h"
namespace enterprise_management {
class DeviceManagementResponse;
class PolicyFetchResponse;
}
namespace wireless_android_enterprise_devicemanagement {
class OmahaSettingsClientProto;
}
namespace updater {
class DMSigningKeyForTesting { … };
std::unique_ptr<DMSigningKeyForTesting> GetTestKey1();
std::unique_ptr<DMSigningKeyForTesting> GetTestKey2();
class DMPolicyBuilderForTesting { … };
std::unique_ptr<
::wireless_android_enterprise_devicemanagement::OmahaSettingsClientProto>
GetDefaultTestingOmahaPolicyProto();
std::unique_ptr<::enterprise_management::DeviceManagementResponse>
GetDMResponseForOmahaPolicy(
bool first_request,
bool rotate_to_new_key,
DMPolicyBuilderForTesting::SigningOption signing_option,
const std::string& dm_token,
const std::string& device_id,
const ::wireless_android_enterprise_devicemanagement::
OmahaSettingsClientProto& omaha_settings);
std::unique_ptr<::enterprise_management::DeviceManagementResponse>
GetDefaultTestingPolicyFetchDMResponse(
bool first_request,
bool rotate_to_new_key,
DMPolicyBuilderForTesting::SigningOption signing_option);
}
#endif