Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3624)

Unified Diff: chrome/browser/notifications/notification_test_util.cc

Issue 6523032: Even more test cleanup. Some fixes to non-test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_test_util.cc
diff --git a/chrome/browser/notifications/notification_test_util.cc b/chrome/browser/notifications/notification_test_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..540e2964f7d0bbb5b3d21c3100c3d9c3f0f32744
--- /dev/null
+++ b/chrome/browser/notifications/notification_test_util.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/notifications/notification_test_util.h"
+
+MockNotificationDelegate::MockNotificationDelegate(const std::string& id)
+ : id_(id) {}
+
+MockNotificationDelegate::~MockNotificationDelegate() {}
+
+std::string MockNotificationDelegate::id() const {
+ return id_;
+}
+
+void MockBalloonView::Close(bool by_user) {
+ balloon_->OnClose(by_user);
+}
+
+gfx::Size MockBalloonView::GetSize() const {
+ return balloon_->content_size();
+}
+
+BalloonHost* MockBalloonView::GetHost() const {
+ return NULL;
+}

Powered by Google App Engine
This is Rietveld 408576698