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

Side by Side Diff: chrome/browser/sync/notifier/communicator/mailbox_unittest.cc

Issue 201077: Fix checkdeps by removing some include paths... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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
« no previous file with comments | « chrome/browser/sync/notifier/base/time_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/sync/notifier/communicator/mailbox.h"
6 #include "notifier/testing/notifier/unittest.h"
7 6
8 namespace notifier { 7 namespace notifier {
9 TEST_NOTIFIER_F(MailBoxTest); 8 TEST_NOTIFIER_F(MailBoxTest);
10 9
11 TEST_F(MailBoxTest, SingleSenderHtml) { 10 TEST_F(MailBoxTest, SingleSenderHtml) {
12 std::string me_address("random@company.com"); 11 std::string me_address("random@company.com");
13 MailSenderList sender_list; 12 MailSenderList sender_list;
14 sender_list.push_back(MailSender("Alex Smith", "a@a.com", true, true)); 13 sender_list.push_back(MailSender("Alex Smith", "a@a.com", true, true));
15 std::string sender_html = GetSenderHtml(sender_list, 1, me_address, 25); 14 std::string sender_html = GetSenderHtml(sender_list, 1, me_address, 25);
16 ASSERT_STREQ("<b>Alex Smith</b>", sender_html.c_str()); 15 ASSERT_STREQ("<b>Alex Smith</b>", sender_html.c_str());
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 sender_list.push_back( 108 sender_list.push_back(
110 MailSender("Person1", "no1@company.com", true, false)); 109 MailSender("Person1", "no1@company.com", true, false));
111 sender_list.push_back( 110 sender_list.push_back(
112 MailSender("ted", "ted@company.com", false, true)); 111 MailSender("ted", "ted@company.com", false, true));
113 std::string sender_html = GetSenderHtml(sender_list, 6, me_address, 25); 112 std::string sender_html = GetSenderHtml(sender_list, 6, me_address, 25);
114 ASSERT_STREQ( 113 ASSERT_STREQ(
115 "ted&nbsp;..&nbsp;<b>Bob</b>&nbsp;..&nbsp;<b>Person1</b>&nbsp;(6)", 114 "ted&nbsp;..&nbsp;<b>Bob</b>&nbsp;..&nbsp;<b>Person1</b>&nbsp;(6)",
116 sender_html.c_str()); 115 sender_html.c_str());
117 } 116 }
118 } // namespace notifier 117 } // namespace notifier
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/base/time_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698