diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-15 22:10:01 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-15 22:10:01 +0000 |
commit | 8d167c212898cb233c51abf13913541c86cfd9ae (patch) | |
tree | f33768df22c405d0ea3e3521a14fc03f565fc07d /chrome/browser/notifications/desktop_notifications_unittest.cc | |
parent | dce08b668bed17b26e497ca56129538ba3da0b42 (diff) | |
download | chromium_src-8d167c212898cb233c51abf13913541c86cfd9ae.zip chromium_src-8d167c212898cb233c51abf13913541c86cfd9ae.tar.gz chromium_src-8d167c212898cb233c51abf13913541c86cfd9ae.tar.bz2 |
Even more test cleanup. Some fixes to non-test code that's regressed.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/6523032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/desktop_notifications_unittest.cc')
-rw-r--r-- | chrome/browser/notifications/desktop_notifications_unittest.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/notifications/desktop_notifications_unittest.cc b/chrome/browser/notifications/desktop_notifications_unittest.cc index 6effdf1..1470cb6 100644 --- a/chrome/browser/notifications/desktop_notifications_unittest.cc +++ b/chrome/browser/notifications/desktop_notifications_unittest.cc @@ -35,6 +35,10 @@ void MockBalloonCollection::Add(const Notification& notification, BalloonCollectionImpl::Add(test_notification, profile); } +bool MockBalloonCollection::HasSpace() const { + return count() < kMockBalloonSpace; +} + Balloon* MockBalloonCollection::MakeBalloon(const Notification& notification, Profile* profile) { // Start with a normal balloon but mock out the view. @@ -55,6 +59,10 @@ void MockBalloonCollection::OnBalloonClosed(Balloon* source) { } } +const BalloonCollection::Balloons& MockBalloonCollection::GetActiveBalloons() { + return balloons_; +} + int MockBalloonCollection::UppermostVerticalPosition() { int min = 0; std::deque<Balloon*>::iterator iter; |