| OLD | NEW |
| 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 Loading... |
| 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 .. <b>Bob</b> .. <b>Person1</b> (6)", | 114 "ted .. <b>Bob</b> .. <b>Person1</b> (6)", |
| 116 sender_html.c_str()); | 115 sender_html.c_str()); |
| 117 } | 116 } |
| 118 } // namespace notifier | 117 } // namespace notifier |
| OLD | NEW |