#include "remoting/host/desktop_session_agent.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_listener.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "remoting/base/auto_thread_task_runner.h"
#include "remoting/host/base/desktop_environment_options.h"
#include "remoting/host/base/screen_resolution.h"
#include "remoting/host/fake_desktop_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
namespace {
class FakeDelegate : public DesktopSessionAgent::Delegate { … };
FakeDelegate::FakeDelegate(scoped_refptr<base::SingleThreadTaskRunner> runner)
: … { … }
class FakeListener : public IPC::Listener { … };
bool FakeListener::OnMessageReceived(const IPC::Message& message) { … }
void FakeListener::OnAssociatedInterfaceRequest(
const std::string& interface_name,
mojo::ScopedInterfaceEndpointHandle handle) { … }
}
class DesktopSessionAgentTest : public ::testing::Test { … };
DesktopSessionAgentTest::DesktopSessionAgentTest()
: … { … }
void DesktopSessionAgentTest::Shutdown() { … }
TEST_F(DesktopSessionAgentTest, StartDesktopSessionAgent) { … }
}