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 "remoting/protocol/jingle_messages.h" | 5 #include "remoting/protocol/jingle_messages.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
8 #include "remoting/protocol/content_description.h" | 11 #include "remoting/protocol/content_description.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
12 #include "third_party/webrtc/libjingle/xmpp/constants.h" | 15 #include "third_party/webrtc/libjingle/xmpp/constants.h" |
13 | 16 |
14 using buzz::QName; | 17 using buzz::QName; |
15 using buzz::XmlAttr; | 18 using buzz::XmlAttr; |
16 using buzz::XmlElement; | 19 using buzz::XmlElement; |
17 | 20 |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 EXPECT_FALSE(JingleMessage::IsJingleMessage(source_message.get())); | 502 EXPECT_FALSE(JingleMessage::IsJingleMessage(source_message.get())); |
500 | 503 |
501 JingleMessage message; | 504 JingleMessage message; |
502 std::string error; | 505 std::string error; |
503 EXPECT_FALSE(message.ParseXml(source_message.get(), &error)); | 506 EXPECT_FALSE(message.ParseXml(source_message.get(), &error)); |
504 EXPECT_FALSE(error.empty()); | 507 EXPECT_FALSE(error.empty()); |
505 } | 508 } |
506 | 509 |
507 } // namespace protocol | 510 } // namespace protocol |
508 } // namespace remoting | 511 } // namespace remoting |
OLD | NEW |