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