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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_test_helper.mm

Issue 6262018: Cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_test_helper.h ('k') | chrome/browser/ui/cocoa/keystone_infobar.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/infobars/infobar_test_helper.mm
===================================================================
--- chrome/browser/ui/cocoa/infobars/infobar_test_helper.mm (revision 72676)
+++ chrome/browser/ui/cocoa/infobars/infobar_test_helper.mm (working copy)
@@ -7,35 +7,6 @@
#include "base/utf_string_conversions.h"
-// MockAlertInfoBarDelegate ---------------------------------------------------
-
-const char MockAlertInfoBarDelegate::kMessage[] = "MockAlertInfoBarMessage";
-
-MockAlertInfoBarDelegate::MockAlertInfoBarDelegate()
- : AlertInfoBarDelegate(NULL),
- icon_accessed_(false),
- message_text_accessed_(false),
- closed_(false) {
-}
-
-MockAlertInfoBarDelegate::~MockAlertInfoBarDelegate() {
-}
-
-void MockAlertInfoBarDelegate::InfoBarClosed() {
- closed_ = true;
-}
-
-SkBitmap* MockAlertInfoBarDelegate::GetIcon() const {
- icon_accessed_ = true;
- return NULL;
-}
-
-string16 MockAlertInfoBarDelegate::GetMessageText() const {
- message_text_accessed_ = true;
- return ASCIIToUTF16(kMessage);
-}
-
-
// MockLinkInfoBarDelegate ----------------------------------------------------
const char MockLinkInfoBarDelegate::kMessage[] = "MockLinkInfoBarMessage";
@@ -113,10 +84,6 @@
return ASCIIToUTF16(kMessage);
}
-int MockConfirmInfoBarDelegate::GetButtons() const {
- return BUTTON_OK | BUTTON_CANCEL;
-}
-
string16 MockConfirmInfoBarDelegate::GetButtonLabel(
InfoBarButton button) const {
return ASCIIToUTF16((button == BUTTON_OK) ? "OK" : "Cancel");
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_test_helper.h ('k') | chrome/browser/ui/cocoa/keystone_infobar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698