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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc

Issue 55323002: Fix tests that were setting safebrowsing factories without unsetting them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/safe_browsing/safe_browsing_blocking_page_unittest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
index 5f4d322057be7dea857781186165f3b0403ff5f9..29d13f08d4dd698a1fae4f652c96000bc0ee847a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
@@ -126,16 +126,16 @@ class SafeBrowsingBlockingPageTest : public ChromeRenderViewHostTestHarness {
ui_manager_ = new TestSafeBrowsingUIManager(NULL);
}
- virtual void SetUp() {
+ virtual void SetUp() OVERRIDE {
ChromeRenderViewHostTestHarness::SetUp();
SafeBrowsingBlockingPage::RegisterFactory(&factory_);
- MalwareDetails::RegisterFactory(NULL); // Create it fresh each time.
Scott Hess - ex-Googler 2013/10/31 22:07:20 Shouldn't this move to TearDown() rather than bein
mattm 2013/10/31 22:39:23 I believe it is just not being used. (Nothing was
ResetUserResponse();
}
- virtual void TearDown() {
+ virtual void TearDown() OVERRIDE {
// Release the UI manager before the BrowserThreads are destroyed.
ui_manager_ = NULL;
+ SafeBrowsingBlockingPage::RegisterFactory(NULL);
ChromeRenderViewHostTestHarness::TearDown();
}

Powered by Google App Engine
This is Rietveld 408576698