#include "components/policy/test_support/remote_commands_result_waiter.h"
#include "base/run_loop.h"
#include "components/policy/proto/device_management_backend.pb.h"
#include "components/policy/test_support/remote_commands_state.h"
em;
namespace policy {
RemoteCommandsResultWaiter::RemoteCommandsResultWaiter(
RemoteCommandsState* remote_commands_state,
int64_t command_id)
: … { … }
RemoteCommandsResultWaiter::~RemoteCommandsResultWaiter() { … }
void RemoteCommandsResultWaiter::WaitForResult() { … }
void RemoteCommandsResultWaiter::WaitForAck() { … }
em::RemoteCommandResult RemoteCommandsResultWaiter::WaitAndGetResult() { … }
void RemoteCommandsResultWaiter::WaitAndGetAck() { … }
void RemoteCommandsResultWaiter::OnRemoteCommandResultAvailable(
int64_t command_id) { … }
void RemoteCommandsResultWaiter::OnRemoteCommandAcked(int64_t command_id) { … }
}