| Index: remoting/host/security_key/fake_ipc_security_key_auth_handler.cc
|
| diff --git a/remoting/host/security_key/fake_ipc_security_key_auth_handler.cc b/remoting/host/security_key/fake_ipc_security_key_auth_handler.cc
|
| deleted file mode 100644
|
| index f16e8b4b369901bf169fb6c30decf03d66f92c2a..0000000000000000000000000000000000000000
|
| --- a/remoting/host/security_key/fake_ipc_security_key_auth_handler.cc
|
| +++ /dev/null
|
| @@ -1,66 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "remoting/host/security_key/fake_ipc_security_key_auth_handler.h"
|
| -
|
| -#include <memory>
|
| -
|
| -#include "base/time/time.h"
|
| -#include "ipc/ipc_channel.h"
|
| -#include "ipc/ipc_listener.h"
|
| -#include "ipc/ipc_message.h"
|
| -#include "ipc/ipc_message_macros.h"
|
| -#include "remoting/host/chromoting_messages.h"
|
| -#include "testing/gtest/include/gtest/gtest.h"
|
| -
|
| -namespace remoting {
|
| -
|
| -FakeIpcSecurityKeyAuthHandler::FakeIpcSecurityKeyAuthHandler() {}
|
| -
|
| -FakeIpcSecurityKeyAuthHandler::~FakeIpcSecurityKeyAuthHandler() {}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::CreateSecurityKeyConnection() {
|
| - ipc_server_channel_ = IPC::Channel::CreateNamedServer(
|
| - IPC::ChannelHandle(ipc_server_channel_name_), this);
|
| - ASSERT_NE(nullptr, ipc_server_channel_);
|
| - ASSERT_TRUE(ipc_server_channel_->Connect());
|
| -}
|
| -
|
| -bool FakeIpcSecurityKeyAuthHandler::IsValidConnectionId(
|
| - int connection_id) const {
|
| - return false;
|
| -}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::SendClientResponse(
|
| - int connection_id,
|
| - const std::string& response_data) {}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::SendErrorAndCloseConnection(
|
| - int connection_id) {}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::SetSendMessageCallback(
|
| - const SendMessageCallback& callback) {}
|
| -
|
| -size_t FakeIpcSecurityKeyAuthHandler::GetActiveConnectionCountForTest() const {
|
| - return 0;
|
| -}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::SetRequestTimeoutForTest(
|
| - base::TimeDelta timeout) {}
|
| -
|
| -bool FakeIpcSecurityKeyAuthHandler::OnMessageReceived(
|
| - const IPC::Message& message) {
|
| - // This class does handle any IPC messages sent by the client.
|
| - return false;
|
| -}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::OnChannelConnected(int32_t peer_pid) {
|
| - ASSERT_TRUE(ipc_server_channel_->Send(
|
| - new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails(
|
| - ipc_security_key_channel_name_)));
|
| -}
|
| -
|
| -void FakeIpcSecurityKeyAuthHandler::OnChannelError() {}
|
| -
|
| -} // namespace remoting
|
|
|