OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/xml_element_util.h" | 5 #include "jingle/notifier/listener/xml_element_util.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <sstream> | 8 #include <sstream> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/webrtc/libjingle/xmllite/qname.h" | 12 #include "third_party/libjingle_xmpp/xmllite/qname.h" |
13 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 13 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
14 #include "third_party/webrtc/libjingle/xmllite/xmlprinter.h" | 14 #include "third_party/libjingle_xmpp/xmllite/xmlprinter.h" |
15 | 15 |
16 namespace buzz { | 16 namespace buzz { |
17 class XmlElement; | 17 class XmlElement; |
18 } | 18 } |
19 | 19 |
20 namespace notifier { | 20 namespace notifier { |
21 namespace { | 21 namespace { |
22 | 22 |
23 class XmlElementUtilTest : public testing::Test {}; | 23 class XmlElementUtilTest : public testing::Test {}; |
24 | 24 |
(...skipping 22 matching lines...) Expand all Loading... |
47 | 47 |
48 TEST_F(XmlElementUtilTest, MakeStringXmlElement) { | 48 TEST_F(XmlElementUtilTest, MakeStringXmlElement) { |
49 std::unique_ptr<buzz::XmlElement> string_xml_element( | 49 std::unique_ptr<buzz::XmlElement> string_xml_element( |
50 MakeStringXmlElement("foo", "bar")); | 50 MakeStringXmlElement("foo", "bar")); |
51 EXPECT_EQ("<foo xmlns=\"\" data=\"bar\"/>", | 51 EXPECT_EQ("<foo xmlns=\"\" data=\"bar\"/>", |
52 XmlElementToString(*string_xml_element)); | 52 XmlElementToString(*string_xml_element)); |
53 } | 53 } |
54 | 54 |
55 } // namespace | 55 } // namespace |
56 } // namespace notifier | 56 } // namespace notifier |
OLD | NEW |