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

Side by Side Diff: jingle/notifier/listener/send_ping_task_unittest.cc

Issue 2443903004: Add xmllite and xmpp sources to third_party/ (Closed)
Patch Set: Explicitly use webrtc_overrides/webrtc/base/logging.h Created 3 years, 11 months 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 #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
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
OLDNEW
« no previous file with comments | « jingle/notifier/listener/send_ping_task.cc ('k') | jingle/notifier/listener/xml_element_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698