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

Side by Side Diff: remoting/protocol/authenticator_test_base.h

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 5 #ifndef REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_
6 #define REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 6 #define REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 bool sender_started, 43 bool sender_started,
44 bool receiver_srated); 44 bool receiver_srated);
45 void SetUp() override; 45 void SetUp() override;
46 void RunAuthExchange(); 46 void RunAuthExchange();
47 void RunHostInitiatedAuthExchange(); 47 void RunHostInitiatedAuthExchange();
48 void RunChannelAuth(bool expected_fail); 48 void RunChannelAuth(bool expected_fail);
49 49
50 void OnHostConnected(int error, std::unique_ptr<P2PStreamSocket> socket); 50 void OnHostConnected(int error, std::unique_ptr<P2PStreamSocket> socket);
51 void OnClientConnected(int error, std::unique_ptr<P2PStreamSocket> socket); 51 void OnClientConnected(int error, std::unique_ptr<P2PStreamSocket> socket);
52 52
53 base::MessageLoop message_loop_;
54
55 scoped_refptr<RsaKeyPair> key_pair_; 53 scoped_refptr<RsaKeyPair> key_pair_;
56 std::string host_public_key_; 54 std::string host_public_key_;
57 std::string host_cert_; 55 std::string host_cert_;
58 std::unique_ptr<Authenticator> host_; 56 std::unique_ptr<Authenticator> host_;
59 std::unique_ptr<Authenticator> client_; 57 std::unique_ptr<Authenticator> client_;
60 std::unique_ptr<FakeStreamSocket> client_fake_socket_; 58 std::unique_ptr<FakeStreamSocket> client_fake_socket_;
61 std::unique_ptr<FakeStreamSocket> host_fake_socket_; 59 std::unique_ptr<FakeStreamSocket> host_fake_socket_;
62 std::unique_ptr<ChannelAuthenticator> client_auth_; 60 std::unique_ptr<ChannelAuthenticator> client_auth_;
63 std::unique_ptr<ChannelAuthenticator> host_auth_; 61 std::unique_ptr<ChannelAuthenticator> host_auth_;
64 MockChannelDoneCallback client_callback_; 62 MockChannelDoneCallback client_callback_;
65 MockChannelDoneCallback host_callback_; 63 MockChannelDoneCallback host_callback_;
66 std::unique_ptr<P2PStreamSocket> client_socket_; 64 std::unique_ptr<P2PStreamSocket> client_socket_;
67 std::unique_ptr<P2PStreamSocket> host_socket_; 65 std::unique_ptr<P2PStreamSocket> host_socket_;
68 66
67 private:
68 base::MessageLoop message_loop_;
69
69 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase); 70 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase);
70 }; 71 };
71 72
72 } // namespace protocol 73 } // namespace protocol
73 } // namespace remoting 74 } // namespace remoting
74 75
75 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 76 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_
OLDNEW
« no previous file with comments | « remoting/host/ipc_desktop_environment_unittest.cc ('k') | remoting/protocol/channel_multiplexer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698