#include "remoting/host/security_key/fake_security_key_message_writer.h"
#include <string>
#include <utility>
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/host/security_key/security_key_message.h"
namespace remoting {
FakeSecurityKeyMessageWriter::FakeSecurityKeyMessageWriter(
const base::RepeatingClosure& write_callback)
: … { … }
FakeSecurityKeyMessageWriter::~FakeSecurityKeyMessageWriter() = default;
base::WeakPtr<FakeSecurityKeyMessageWriter>
FakeSecurityKeyMessageWriter::AsWeakPtr() { … }
bool FakeSecurityKeyMessageWriter::WriteMessage(
SecurityKeyMessageType message_type) { … }
bool FakeSecurityKeyMessageWriter::WriteMessageWithPayload(
SecurityKeyMessageType message_type,
const std::string& message_payload) { … }
}