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_send_update_task.h" | 5 #include "jingle/notifier/listener/push_notifications_send_update_task.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "jingle/notifier/listener/xml_element_util.h" | 10 #include "jingle/notifier/listener/xml_element_util.h" |
11 #include "talk/xmpp/jid.h" | 11 #include "talk/xmpp/jid.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace buzz { | 14 namespace buzz { |
15 class XmlElement; | 15 class XmlElement; |
16 } | 16 } |
17 | 17 |
18 namespace notifier { | 18 namespace notifier { |
19 | 19 |
(...skipping 29 matching lines...) Expand all Loading... |
49 "<push xmlns=\"google:push\" channel=\"%s\">" | 49 "<push xmlns=\"google:push\" channel=\"%s\">" |
50 "<data xmlns=\"google:push\">%s</data>" | 50 "<data xmlns=\"google:push\">%s</data>" |
51 "</push>" | 51 "</push>" |
52 "</cli:message>", | 52 "</cli:message>", |
53 to_jid_bare_.Str().c_str(), notification.channel.c_str(), | 53 to_jid_bare_.Str().c_str(), notification.channel.c_str(), |
54 base64_data.c_str()); | 54 base64_data.c_str()); |
55 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); | 55 EXPECT_EQ(expected_xml_string, XmlElementToString(*message)); |
56 } | 56 } |
57 | 57 |
58 } // namespace notifier | 58 } // namespace notifier |
OLD | NEW |