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

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

Issue 660803004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace protocol { 23 namespace protocol {
24 24
25 class Authenticator; 25 class Authenticator;
26 class ChannelAuthenticator; 26 class ChannelAuthenticator;
27 class FakeStreamSocket; 27 class FakeStreamSocket;
28 28
29 class AuthenticatorTestBase : public testing::Test { 29 class AuthenticatorTestBase : public testing::Test {
30 public: 30 public:
31 AuthenticatorTestBase(); 31 AuthenticatorTestBase();
32 virtual ~AuthenticatorTestBase(); 32 ~AuthenticatorTestBase() override;
33 33
34 protected: 34 protected:
35 class MockChannelDoneCallback { 35 class MockChannelDoneCallback {
36 public: 36 public:
37 MockChannelDoneCallback(); 37 MockChannelDoneCallback();
38 ~MockChannelDoneCallback(); 38 ~MockChannelDoneCallback();
39 MOCK_METHOD1(OnDone, void(int error)); 39 MOCK_METHOD1(OnDone, void(int error));
40 }; 40 };
41 41
42 static void ContinueAuthExchangeWith(Authenticator* sender, 42 static void ContinueAuthExchangeWith(Authenticator* sender,
43 Authenticator* receiver, 43 Authenticator* receiver,
44 bool sender_started, 44 bool sender_started,
45 bool receiver_srated); 45 bool receiver_srated);
46 virtual void SetUp() override; 46 void SetUp() override;
47 void RunAuthExchange(); 47 void RunAuthExchange();
48 void RunHostInitiatedAuthExchange(); 48 void RunHostInitiatedAuthExchange();
49 void RunChannelAuth(bool expected_fail); 49 void RunChannelAuth(bool expected_fail);
50 50
51 void OnHostConnected(int error, 51 void OnHostConnected(int error,
52 scoped_ptr<net::StreamSocket> socket); 52 scoped_ptr<net::StreamSocket> socket);
53 void OnClientConnected(int error, 53 void OnClientConnected(int error,
54 scoped_ptr<net::StreamSocket> socket); 54 scoped_ptr<net::StreamSocket> socket);
55 55
56 base::MessageLoop message_loop_; 56 base::MessageLoop message_loop_;
(...skipping 12 matching lines...) Expand all
69 scoped_ptr<net::StreamSocket> client_socket_; 69 scoped_ptr<net::StreamSocket> client_socket_;
70 scoped_ptr<net::StreamSocket> host_socket_; 70 scoped_ptr<net::StreamSocket> host_socket_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase); 72 DISALLOW_COPY_AND_ASSIGN(AuthenticatorTestBase);
73 }; 73 };
74 74
75 } // namespace protocol 75 } // namespace protocol
76 } // namespace remoting 76 } // namespace remoting
77 77
78 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_ 78 #endif // REMOTING_PROTOCOL_AUTHENTICATOR_TEST_BASE_H_
OLDNEW
« no previous file with comments | « remoting/host/video_scheduler_unittest.cc ('k') | remoting/protocol/buffered_socket_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698