#include "remoting/host/chromoting_host_services_server.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/process/process.h"
#include "base/process/process_handle.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "base/test/multiprocess_test.h"
#include "base/test/task_environment.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread.h"
#include "components/named_mojo_ipc_server/named_mojo_ipc_server_client_util.h"
#include "components/named_mojo_ipc_server/named_mojo_ipc_test_util.h"
#include "mojo/public/c/system/types.h"
#include "mojo/public/cpp/platform/named_platform_channel.h"
#include "mojo/public/cpp/platform/platform_channel_endpoint.h"
#include "mojo/public/cpp/system/invitation.h"
#include "mojo/public/cpp/system/message_pipe.h"
#include "mojo/public/cpp/system/simple_watcher.h"
#include "remoting/host/ipc_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"
namespace remoting {
namespace {
_;
Return;
static const char kClientProcessName[] = …;
static const char kClientProcessServerNameSwitch[] = …;
MULTIPROCESS_TEST_MAIN(ClientProcess) { … }
}
class ChromotingHostServicesServerTest : public testing::Test { … };
ChromotingHostServicesServerTest::ChromotingHostServicesServerTest() { … }
ChromotingHostServicesServerTest::~ChromotingHostServicesServerTest() { … }
base::Process ChromotingHostServicesServerTest::LaunchClientProcess() { … }
int ChromotingHostServicesServerTest::WaitForProcessExit(
base::Process& process) { … }
TEST_F(ChromotingHostServicesServerTest,
ValidClientConnects_BindingCallbackIsCalled) { … }
TEST_F(ChromotingHostServicesServerTest,
InvalidClientConnects_BindingCallbackIsNotCalled) { … }
}