#include "chrome/browser/enterprise/connectors/device_trust/key_management/installer/management_service/mojo_helper/mojo_helper.h"
#include <utility>
#include "base/command_line.h"
#include "base/no_destructor.h"
#include "mojo/public/cpp/platform/platform_channel.h"
#include "mojo/public/cpp/system/invitation.h"
#include "mojo/public/cpp/system/message_pipe.h"
namespace enterprise_connectors {
namespace {
std::unique_ptr<MojoHelper>* GetTestInstanceStorage() { … }
}
class MojoHelperImpl : public MojoHelper { … };
void MojoHelper::SetInstanceForTesting(std::unique_ptr<MojoHelper> helper) { … }
std::unique_ptr<MojoHelper> MojoHelper::Create() { … }
MojoHelperImpl::MojoHelperImpl() = default;
MojoHelperImpl::~MojoHelperImpl() = default;
mojo::PlatformChannelEndpoint MojoHelperImpl::GetEndpointFromCommandLine(
const base::CommandLine& command_line) { … }
mojo::IncomingInvitation MojoHelperImpl::AcceptMojoInvitation(
mojo::PlatformChannelEndpoint channel_endpoint) { … }
mojo::ScopedMessagePipeHandle MojoHelperImpl::ExtractMojoMessage(
mojo::IncomingInvitation invitation,
uint64_t pipe_name) { … }
mojo::PendingRemote<network::mojom::URLLoaderFactory>
MojoHelperImpl::CreatePendingRemote(mojo::ScopedMessagePipeHandle pipe_handle) { … }
void MojoHelperImpl::BindRemote(
mojo::Remote<network::mojom::URLLoaderFactory>& remote_url_loader_factory,
mojo::PendingRemote<network::mojom::URLLoaderFactory>
pending_remote_url_loader_factory) { … }
bool MojoHelperImpl::CheckRemoteConnection(
mojo::Remote<network::mojom::URLLoaderFactory>& remote_url_loader_factory) { … }
}