#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/message_loop/message_pump_type.h"
#include "base/task/single_thread_task_executor.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "build/build_config.h"
#include "mojo/core/embedder/embedder.h"
#include "remoting/host/resources.h"
#include "remoting/test/it2me_cli_host.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#include "base/linux_util.h"
#endif
int main(int argc, char const* argv[]) {
base::AtExitManager exitManager;
base::CommandLine::Init(argc, argv);
if (remoting::It2MeCliHost::ShouldPrintHelp()) {
remoting::It2MeCliHost::PrintHelp();
return 0;
}
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
base::GetLinuxDistro();
#endif
base::SingleThreadTaskExecutor io_task_executor(base::MessagePumpType::IO);
remoting::It2MeCliHost cli_host;
base::ThreadPoolInstance::CreateAndStartWithDefaultParams("It2MeCliHost");
mojo::core::Init();
remoting::LoadResources("");
cli_host.Start();
return 0;
}