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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "remoting/protocol/authenticator.h" | 10 #include "remoting/protocol/authenticator.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 }; | 82 }; |
83 | 83 |
84 class FakeHostAuthenticatorFactory : public AuthenticatorFactory { | 84 class FakeHostAuthenticatorFactory : public AuthenticatorFactory { |
85 public: | 85 public: |
86 FakeHostAuthenticatorFactory( | 86 FakeHostAuthenticatorFactory( |
87 int round_trips, FakeAuthenticator::Action action, bool async); | 87 int round_trips, FakeAuthenticator::Action action, bool async); |
88 virtual ~FakeHostAuthenticatorFactory(); | 88 virtual ~FakeHostAuthenticatorFactory(); |
89 | 89 |
90 // AuthenticatorFactory interface. | 90 // AuthenticatorFactory interface. |
91 virtual scoped_ptr<Authenticator> CreateAuthenticator( | 91 virtual scoped_ptr<Authenticator> CreateAuthenticator( |
| 92 const std::string& local_jid, |
92 const std::string& remote_jid, | 93 const std::string& remote_jid, |
93 const buzz::XmlElement* first_message) OVERRIDE; | 94 const buzz::XmlElement* first_message) OVERRIDE; |
94 | 95 |
95 private: | 96 private: |
96 int round_trips_; | 97 int round_trips_; |
97 FakeAuthenticator::Action action_; | 98 FakeAuthenticator::Action action_; |
98 bool async_; | 99 bool async_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); | 101 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace protocol | 104 } // namespace protocol |
104 } // namespace remoting | 105 } // namespace remoting |
105 | 106 |
106 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ | 107 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ |
OLD | NEW |