OLD | NEW |
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_FAKE_AUTHENTICATOR_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
6 #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ | 6 #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "remoting/protocol/authenticator.h" | 11 #include "remoting/protocol/authenticator.h" |
11 #include "remoting/protocol/channel_authenticator.h" | 12 #include "remoting/protocol/channel_authenticator.h" |
12 | 13 |
13 namespace remoting { | 14 namespace remoting { |
14 namespace protocol { | 15 namespace protocol { |
15 | 16 |
16 class FakeChannelAuthenticator : public ChannelAuthenticator { | 17 class FakeChannelAuthenticator : public ChannelAuthenticator { |
17 public: | 18 public: |
18 FakeChannelAuthenticator(bool accept, bool async); | 19 FakeChannelAuthenticator(bool accept, bool async); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 FakeAuthenticator::Action action_; | 110 FakeAuthenticator::Action action_; |
110 bool async_; | 111 bool async_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); | 113 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace protocol | 116 } // namespace protocol |
116 } // namespace remoting | 117 } // namespace remoting |
117 | 118 |
118 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ | 119 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
OLD | NEW |