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

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

Issue 12389010: Refactor of Authenticator to allow it to ProcessMessage asynchronously and then call a callback (Closed) Base URL: http://git.chromium.org/chromium/src.git@host_key_pair
Patch Set: Rebase missed one include Created 7 years, 9 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
« no previous file with comments | « remoting/protocol/authenticator.h ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 22 matching lines...) Expand all
33 virtual ~AuthenticatorTestBase(); 33 virtual ~AuthenticatorTestBase();
34 34
35 protected: 35 protected:
36 class MockChannelDoneCallback { 36 class MockChannelDoneCallback {
37 public: 37 public:
38 MockChannelDoneCallback(); 38 MockChannelDoneCallback();
39 ~MockChannelDoneCallback(); 39 ~MockChannelDoneCallback();
40 MOCK_METHOD1(OnDone, void(net::Error error)); 40 MOCK_METHOD1(OnDone, void(net::Error error));
41 }; 41 };
42 42
43 static void ContinueAuthExchangeWith(Authenticator* sender,
44 Authenticator* receiver);
43 virtual void SetUp() OVERRIDE; 45 virtual void SetUp() OVERRIDE;
44 void RunAuthExchange(); 46 void RunAuthExchange();
45 void RunChannelAuth(bool expected_fail); 47 void RunChannelAuth(bool expected_fail);
46 48
47 void OnHostConnected(net::Error error, 49 void OnHostConnected(net::Error error,
48 scoped_ptr<net::StreamSocket> socket); 50 scoped_ptr<net::StreamSocket> socket);
49 void OnClientConnected(net::Error error, 51 void OnClientConnected(net::Error error,
50 scoped_ptr<net::StreamSocket> socket); 52 scoped_ptr<net::StreamSocket> socket);
51 53
52 MessageLoop message_loop_; 54 MessageLoop message_loop_;
(...skipping 11 matching lines...) Expand all
64 scoped_ptr<net::StreamSocket> client_socket_; 66 scoped_ptr<net::StreamSocket> client_socket_;
65 scoped_ptr<net::StreamSocket> host_socket_; 67 scoped_ptr<net::StreamSocket> host_socket_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase); 69 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase);
68 }; 70 };
69 71
70 } // namespace protocol 72 } // namespace protocol
71 } // namespace remoting 73 } // namespace remoting
72 74
73 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 75 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_
OLDNEW
« no previous file with comments | « remoting/protocol/authenticator.h ('k') | remoting/protocol/authenticator_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698