OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/utf_string_conversions.h" |
5 #include "chrome/browser/chromeos/notifications/desktop_notifications_unittest.h
" | 6 #include "chrome/browser/chromeos/notifications/desktop_notifications_unittest.h
" |
6 | 7 |
7 namespace chromeos { | 8 namespace chromeos { |
8 | 9 |
9 // static | 10 // static |
10 std::string DesktopNotificationsTest::log_output_; | 11 std::string DesktopNotificationsTest::log_output_; |
11 | 12 |
12 class MockNotificationUI : public BalloonCollectionImpl::NotificationUI { | 13 class MockNotificationUI : public BalloonCollectionImpl::NotificationUI { |
13 public: | 14 public: |
14 virtual void Add(Balloon* balloon) {} | 15 virtual void Add(Balloon* balloon) {} |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 265 |
265 MessageLoopForUI::current()->RunAllPending(); | 266 MessageLoopForUI::current()->RunAllPending(); |
266 EXPECT_EQ(1, balloon_collection_->count()); | 267 EXPECT_EQ(1, balloon_collection_->count()); |
267 Balloon* balloon = (*balloon_collection_->balloons().begin()); | 268 Balloon* balloon = (*balloon_collection_->balloons().begin()); |
268 GURL data_url = balloon->notification().content_url(); | 269 GURL data_url = balloon->notification().content_url(); |
269 EXPECT_EQ(std::string::npos, data_url.spec().find("<script>")); | 270 EXPECT_EQ(std::string::npos, data_url.spec().find("<script>")); |
270 EXPECT_EQ(std::string::npos, data_url.spec().find("<i>")); | 271 EXPECT_EQ(std::string::npos, data_url.spec().find("<i>")); |
271 } | 272 } |
272 | 273 |
273 } // namespace chromeos | 274 } // namespace chromeos |
OLD | NEW |