| 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/push_notifications_subscribe_task.h" | 5 #include "jingle/notifier/listener/push_notifications_subscribe_task.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.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 PushNotificationsSubscribeTaskTest : public testing::Test { | 21 class PushNotificationsSubscribeTaskTest : public testing::Test { |
| 22 public: | 22 public: |
| 23 PushNotificationsSubscribeTaskTest() | 23 PushNotificationsSubscribeTaskTest() |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 "<item channel=\"test_channel2\" from=\"from.test2.com\"/>" | 55 "<item channel=\"test_channel2\" from=\"from.test2.com\"/>" |
| 56 "</subscribe>" | 56 "</subscribe>" |
| 57 "</cli:iq>", | 57 "</cli:iq>", |
| 58 jid_.BareJid().Str().c_str(), task_id_.c_str()); | 58 jid_.BareJid().Str().c_str(), task_id_.c_str()); |
| 59 | 59 |
| 60 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); | 60 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace notifier | 63 } // namespace notifier |
| 64 | 64 |
| OLD | NEW |