chromium/remoting/host/fake_host_extension.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// This can't be inlined in the class definition since it doesn't know that
// FakeExtension::Session is a subclass of HostExtensionSession yet.
HostExtensionSession* FakeExtension::extension_session() {}

}  // namespace remoting