| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/notifications/notification_test_util.h" | 5 #include "chrome/browser/notifications/notification_test_util.h" |
| 6 | 6 |
| 7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) | 7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) |
| 8 : id_(id) { | 8 : id_(id) { |
| 9 } | 9 } |
| 10 | 10 |
| 11 MockNotificationDelegate::~MockNotificationDelegate() {} | 11 MockNotificationDelegate::~MockNotificationDelegate() {} |
| 12 | 12 |
| 13 std::string MockNotificationDelegate::id() const { | 13 std::string MockNotificationDelegate::id() const { |
| 14 return id_; | 14 return id_; |
| 15 } | 15 } |
| 16 | 16 |
| 17 content::RenderViewHost* MockNotificationDelegate::GetRenderViewHost() const { |
| 18 return NULL; |
| 19 } |
| 20 |
| 17 void MockBalloonView::Close(bool by_user) { | 21 void MockBalloonView::Close(bool by_user) { |
| 18 balloon_->OnClose(by_user); | 22 balloon_->OnClose(by_user); |
| 19 } | 23 } |
| 20 | 24 |
| 21 gfx::Size MockBalloonView::GetSize() const { | 25 gfx::Size MockBalloonView::GetSize() const { |
| 22 return balloon_->content_size(); | 26 return balloon_->content_size(); |
| 23 } | 27 } |
| 24 | 28 |
| 25 BalloonHost* MockBalloonView::GetHost() const { | 29 BalloonHost* MockBalloonView::GetHost() const { |
| 26 return NULL; | 30 return NULL; |
| 27 } | 31 } |
| OLD | NEW |