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 #include "jingle/notifier/listener/send_ping_task.h" | 5 #include "jingle/notifier/listener/send_ping_task.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "jingle/notifier/listener/xml_element_util.h" | 11 #include "jingle/notifier/listener/xml_element_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "webrtc/libjingle/xmpp/jid.h" | 13 #include "third_party/libjingle_xmpp/xmpp/jid.h" |
14 | 14 |
15 namespace buzz { | 15 namespace buzz { |
16 class XmlElement; | 16 class XmlElement; |
17 } | 17 } |
18 | 18 |
19 namespace notifier { | 19 namespace notifier { |
20 | 20 |
21 class SendPingTaskTest : public testing::Test { | 21 class SendPingTaskTest : public testing::Test { |
22 public: | 22 public: |
23 SendPingTaskTest() {} | 23 SendPingTaskTest() {} |
(...skipping 11 matching lines...) Expand all Loading... |
35 std::string expected_xml_string("<cli:iq type=\"get\" id=\""); | 35 std::string expected_xml_string("<cli:iq type=\"get\" id=\""); |
36 expected_xml_string += task_id; | 36 expected_xml_string += task_id; |
37 expected_xml_string += | 37 expected_xml_string += |
38 "\" xmlns:cli=\"jabber:client\">" | 38 "\" xmlns:cli=\"jabber:client\">" |
39 "<ping:ping xmlns:ping=\"urn:xmpp:ping\"/></cli:iq>"; | 39 "<ping:ping xmlns:ping=\"urn:xmpp:ping\"/></cli:iq>"; |
40 | 40 |
41 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); | 41 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); |
42 } | 42 } |
43 | 43 |
44 } // namespace notifier | 44 } // namespace notifier |
OLD | NEW |