Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: remoting/host/security_key/fake_ipc_gnubby_auth_handler.cc

Issue 2162083003: Renaming Gnubby and RemoteSecurityKey files/classes/members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a GYP build error Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/security_key/fake_ipc_gnubby_auth_handler.cc
diff --git a/remoting/host/security_key/fake_ipc_gnubby_auth_handler.cc b/remoting/host/security_key/fake_ipc_gnubby_auth_handler.cc
deleted file mode 100644
index 2918f387933a3e283c26460c031ef8379e08594f..0000000000000000000000000000000000000000
--- a/remoting/host/security_key/fake_ipc_gnubby_auth_handler.cc
+++ /dev/null
@@ -1,63 +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_gnubby_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 {
-
-FakeIpcGnubbyAuthHandler::FakeIpcGnubbyAuthHandler() {}
-
-FakeIpcGnubbyAuthHandler::~FakeIpcGnubbyAuthHandler() {}
-
-void FakeIpcGnubbyAuthHandler::CreateGnubbyConnection() {
- 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 FakeIpcGnubbyAuthHandler::IsValidConnectionId(int connection_id) const {
- return false;
-}
-
-void FakeIpcGnubbyAuthHandler::SendClientResponse(
- int connection_id,
- const std::string& response_data) {}
-
-void FakeIpcGnubbyAuthHandler::SendErrorAndCloseConnection(int connection_id) {}
-
-void FakeIpcGnubbyAuthHandler::SetSendMessageCallback(
- const SendMessageCallback& callback) {}
-
-size_t FakeIpcGnubbyAuthHandler::GetActiveConnectionCountForTest() const {
- return 0;
-}
-
-void FakeIpcGnubbyAuthHandler::SetRequestTimeoutForTest(
- base::TimeDelta timeout) {}
-
-bool FakeIpcGnubbyAuthHandler::OnMessageReceived(const IPC::Message& message) {
- // This class does handle any IPC messages sent by the client.
- return false;
-}
-
-void FakeIpcGnubbyAuthHandler::OnChannelConnected(int32_t peer_pid) {
- ASSERT_TRUE(ipc_server_channel_->Send(
- new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails(
- ipc_security_key_channel_name_)));
-}
-
-void FakeIpcGnubbyAuthHandler::OnChannelError() {}
-
-} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698