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

Side by Side Diff: chrome/common/net/notifier/communicator/mailbox_unittest.cc

Issue 1956001: Moved XMPP notifier library from chrome/browser/sync to chrome/common.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/sync/notifier/communicator/mailbox.h" 5 #include "chrome/common/net/notifier/communicator/mailbox.h"
6 6
7 namespace notifier { 7 namespace notifier {
8 8
9 TEST_NOTIFIER_F(MailBoxTest); 9 TEST_NOTIFIER_F(MailBoxTest);
10 10
11 TEST_F(MailBoxTest, SingleSenderHtml) { 11 TEST_F(MailBoxTest, SingleSenderHtml) {
12 std::string me_address("random@company.com"); 12 std::string me_address("random@company.com");
13 MailSenderList sender_list; 13 MailSenderList sender_list;
14 sender_list.push_back(MailSender("Alex Smith", "a@a.com", true, true)); 14 sender_list.push_back(MailSender("Alex Smith", "a@a.com", true, true));
15 std::string sender_html = GetSenderHtml(sender_list, 1, me_address, 25); 15 std::string sender_html = GetSenderHtml(sender_list, 1, me_address, 25);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 MailSender("Person1", "no1@company.com", true, false)); 110 MailSender("Person1", "no1@company.com", true, false));
111 sender_list.push_back( 111 sender_list.push_back(
112 MailSender("ted", "ted@company.com", false, true)); 112 MailSender("ted", "ted@company.com", false, true));
113 std::string sender_html = GetSenderHtml(sender_list, 6, me_address, 25); 113 std::string sender_html = GetSenderHtml(sender_list, 6, me_address, 25);
114 ASSERT_STREQ( 114 ASSERT_STREQ(
115 "ted&nbsp;..&nbsp;<b>Bob</b>&nbsp;..&nbsp;<b>Person1</b>&nbsp;(6)", 115 "ted&nbsp;..&nbsp;<b>Bob</b>&nbsp;..&nbsp;<b>Person1</b>&nbsp;(6)",
116 sender_html.c_str()); 116 sender_html.c_str());
117 } 117 }
118 118
119 } // namespace notifier 119 } // namespace notifier
OLDNEW
« no previous file with comments | « chrome/common/net/notifier/communicator/mailbox.cc ('k') | chrome/common/net/notifier/communicator/product_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698