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

Side by Side Diff: remoting/host/security_key/fake_ipc_gnubby_auth_handler.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/security_key/fake_ipc_gnubby_auth_handler.h" 5 #include "remoting/host/security_key/fake_ipc_gnubby_auth_handler.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include <memory>
8
8 #include "base/time/time.h" 9 #include "base/time/time.h"
9 #include "ipc/ipc_channel.h" 10 #include "ipc/ipc_channel.h"
10 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
11 #include "ipc/ipc_message.h" 12 #include "ipc/ipc_message.h"
12 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
13 #include "remoting/host/chromoting_messages.h" 14 #include "remoting/host/chromoting_messages.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 namespace remoting { 17 namespace remoting {
17 18
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 54
54 void FakeIpcGnubbyAuthHandler::OnChannelConnected(int32_t peer_pid) { 55 void FakeIpcGnubbyAuthHandler::OnChannelConnected(int32_t peer_pid) {
55 ASSERT_TRUE(ipc_server_channel_->Send( 56 ASSERT_TRUE(ipc_server_channel_->Send(
56 new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails( 57 new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails(
57 ipc_security_key_channel_name_))); 58 ipc_security_key_channel_name_)));
58 } 59 }
59 60
60 void FakeIpcGnubbyAuthHandler::OnChannelError() {} 61 void FakeIpcGnubbyAuthHandler::OnChannelError() {}
61 62
62 } // namespace remoting 63 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698