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

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

Issue 14314026: remoting: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void SetUp() OVERRIDE; 45 virtual 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(net::Error error, 50 void OnHostConnected(net::Error error,
51 scoped_ptr<net::StreamSocket> socket); 51 scoped_ptr<net::StreamSocket> socket);
52 void OnClientConnected(net::Error error, 52 void OnClientConnected(net::Error error,
53 scoped_ptr<net::StreamSocket> socket); 53 scoped_ptr<net::StreamSocket> socket);
54 54
55 MessageLoop message_loop_; 55 base::MessageLoop message_loop_;
56 56
57 scoped_refptr<RsaKeyPair> key_pair_; 57 scoped_refptr<RsaKeyPair> key_pair_;
58 std::string host_public_key_; 58 std::string host_public_key_;
59 std::string host_cert_; 59 std::string host_cert_;
60 scoped_ptr<Authenticator> host_; 60 scoped_ptr<Authenticator> host_;
61 scoped_ptr<Authenticator> client_; 61 scoped_ptr<Authenticator> client_;
62 scoped_ptr<FakeSocket> client_fake_socket_; 62 scoped_ptr<FakeSocket> client_fake_socket_;
63 scoped_ptr<FakeSocket> host_fake_socket_; 63 scoped_ptr<FakeSocket> host_fake_socket_;
64 scoped_ptr<ChannelAuthenticator> client_auth_; 64 scoped_ptr<ChannelAuthenticator> client_auth_;
65 scoped_ptr<ChannelAuthenticator> host_auth_; 65 scoped_ptr<ChannelAuthenticator> host_auth_;
66 MockChannelDoneCallback client_callback_; 66 MockChannelDoneCallback client_callback_;
67 MockChannelDoneCallback host_callback_; 67 MockChannelDoneCallback host_callback_;
68 scoped_ptr<net::StreamSocket> client_socket_; 68 scoped_ptr<net::StreamSocket> client_socket_;
69 scoped_ptr<net::StreamSocket> host_socket_; 69 scoped_ptr<net::StreamSocket> host_socket_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase); 71 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase);
72 }; 72 };
73 73
74 } // namespace protocol 74 } // namespace protocol
75 } // namespace remoting 75 } // namespace remoting
76 76
77 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 77 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/iq_sender_unittest.cc ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698