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