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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "jingle/notifier/listener/xml_element_util.h" | 9 #include "jingle/notifier/listener/xml_element_util.h" |
10 #include "talk/xmpp/jid.h" | 10 #include "talk/xmpp/jid.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace buzz { | 13 namespace buzz { |
14 class XmlElement; | 14 class XmlElement; |
15 } | 15 } |
16 | 16 |
17 namespace notifier { | 17 namespace notifier { |
18 | 18 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 "<item channel=\"test_channel2\" from=\"from.test2.com\"/>" | 53 "<item channel=\"test_channel2\" from=\"from.test2.com\"/>" |
54 "</subscribe>" | 54 "</subscribe>" |
55 "</cli:iq>", | 55 "</cli:iq>", |
56 jid_.BareJid().Str().c_str(), task_id_.c_str()); | 56 jid_.BareJid().Str().c_str(), task_id_.c_str()); |
57 | 57 |
58 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); | 58 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); |
59 } | 59 } |
60 | 60 |
61 } // namespace notifier | 61 } // namespace notifier |
62 | 62 |
OLD | NEW |