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

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

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Last round of feedbacks Created 6 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 | Annotate | Revision Log
« 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/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 23 matching lines...) Expand all
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, 43 static void ContinueAuthExchangeWith(Authenticator* sender,
44 Authenticator* receiver); 44 Authenticator* receiver,
45 bool sender_started,
46 bool receiver_srated);
45 virtual void SetUp() OVERRIDE; 47 virtual void SetUp() OVERRIDE;
46 void RunAuthExchange(); 48 void RunAuthExchange();
47 void RunHostInitiatedAuthExchange(); 49 void RunHostInitiatedAuthExchange();
48 void RunChannelAuth(bool expected_fail); 50 void RunChannelAuth(bool expected_fail);
49 51
50 void OnHostConnected(net::Error error, 52 void OnHostConnected(net::Error error,
51 scoped_ptr<net::StreamSocket> socket); 53 scoped_ptr<net::StreamSocket> socket);
52 void OnClientConnected(net::Error error, 54 void OnClientConnected(net::Error error,
53 scoped_ptr<net::StreamSocket> socket); 55 scoped_ptr<net::StreamSocket> socket);
54 56
(...skipping 13 matching lines...) Expand all
68 scoped_ptr<net::StreamSocket> client_socket_; 70 scoped_ptr<net::StreamSocket> client_socket_;
69 scoped_ptr<net::StreamSocket> host_socket_; 71 scoped_ptr<net::StreamSocket> host_socket_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase); 73 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase);
72 }; 74 };
73 75
74 } // namespace protocol 76 } // namespace protocol
75 } // namespace remoting 77 } // namespace remoting
76 78
77 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 79 #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