Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: jingle/notifier/listener/push_notifications_send_update_task_unittest.cc

Issue 16684003: Use a direct include of strings headers in ipc/, jingle/, media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698