OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // A fake XmppClient for use in unit tests. | 11 // A fake XmppClient for use in unit tests. |
12 | 12 |
13 #ifndef WEBRTC_LIBJINGLE_XMPP_FAKEXMPPCLIENT_H_ | 13 #ifndef WEBRTC_LIBJINGLE_XMPP_FAKEXMPPCLIENT_H_ |
14 #define WEBRTC_LIBJINGLE_XMPP_FAKEXMPPCLIENT_H_ | 14 #define WEBRTC_LIBJINGLE_XMPP_FAKEXMPPCLIENT_H_ |
15 | 15 |
| 16 #include <algorithm> |
16 #include <string> | 17 #include <string> |
17 #include <vector> | 18 #include <vector> |
18 | 19 |
19 #include "webrtc/libjingle/xmpp/xmpptask.h" | 20 #include "webrtc/libjingle/xmpp/xmpptask.h" |
20 | 21 |
21 namespace buzz { | 22 namespace buzz { |
22 | 23 |
23 class XmlElement; | 24 class XmlElement; |
24 | 25 |
25 class FakeXmppClient : public XmppTaskParentInterface, | 26 class FakeXmppClient : public XmppTaskParentInterface, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 98 |
98 private: | 99 private: |
99 Jid jid_; | 100 Jid jid_; |
100 std::vector<XmppTask*> tasks_; | 101 std::vector<XmppTask*> tasks_; |
101 std::vector<const XmlElement*> sent_stanzas_; | 102 std::vector<const XmlElement*> sent_stanzas_; |
102 }; | 103 }; |
103 | 104 |
104 } // namespace buzz | 105 } // namespace buzz |
105 | 106 |
106 #endif // WEBRTC_LIBJINGLE_XMPP_FAKEXMPPCLIENT_H_ | 107 #endif // WEBRTC_LIBJINGLE_XMPP_FAKEXMPPCLIENT_H_ |
OLD | NEW |