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

Unified Diff: chrome/browser/download/download_request_infobar_delegate_unittest.cc

Issue 7294006: Try to bandaid leaks due to TabContentsWrapper not force-closing all InfoBarDelegates on shutdown... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « no previous file | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_request_infobar_delegate_unittest.cc
===================================================================
--- chrome/browser/download/download_request_infobar_delegate_unittest.cc (revision 91189)
+++ chrome/browser/download/download_request_infobar_delegate_unittest.cc (working copy)
@@ -72,13 +72,15 @@
TEST(DownloadRequestInfobarDelegate, AcceptTest) {
MockTabDownloadState state;
- state.infobar()->Accept();
+ if (state.infobar()->Accept())
+ state.close_infobar();
EXPECT_TRUE(state.accepted());
}
TEST(DownloadRequestInfobarDelegate, CancelTest) {
MockTabDownloadState state;
- state.infobar()->Cancel();
+ if (state.infobar()->Cancel())
+ state.close_infobar();
EXPECT_FALSE(state.accepted());
}
« no previous file with comments | « no previous file | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698