• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/notifications/notification_test_util.h"
6 
MockNotificationDelegate(const std::string & id)7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id)
8     : id_(id) {}
9 
~MockNotificationDelegate()10 MockNotificationDelegate::~MockNotificationDelegate() {}
11 
id() const12 std::string MockNotificationDelegate::id() const {
13   return id_;
14 }
15 
Close(bool by_user)16 void MockBalloonView::Close(bool by_user) {
17   balloon_->OnClose(by_user);
18 }
19 
GetSize() const20 gfx::Size MockBalloonView::GetSize() const {
21   return balloon_->content_size();
22 }
23 
GetHost() const24 BalloonHost* MockBalloonView::GetHost() const {
25   return NULL;
26 }
27