#include "remoting/host/fake_host_extension.h"
#include <memory>
#include <string>
#include "base/check.h"
#include "base/memory/raw_ptr.h"
#include "remoting/host/client_session_details.h"
#include "remoting/host/host_extension_session.h"
#include "remoting/proto/control.pb.h"
namespace remoting {
class FakeExtension::Session : public HostExtensionSession { … };
FakeExtension::Session::Session(FakeExtension* extension,
const std::string& message_type)
: … { … }
bool FakeExtension::Session::OnExtensionMessage(
ClientSessionDetails* client_session_details,
protocol::ClientStub* client_stub,
const protocol::ExtensionMessage& message) { … }
FakeExtension::FakeExtension(const std::string& message_type,
const std::string& capability)
: … { … }
FakeExtension::~FakeExtension() = default;
std::string FakeExtension::capability() const { … }
std::unique_ptr<HostExtensionSession> FakeExtension::CreateExtensionSession(
ClientSessionDetails* client_session_details,
protocol::ClientStub* client_stub) { … }
HostExtensionSession* FakeExtension::extension_session() { … }
}