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

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

Issue 9310020: Add SafeBrowsingURLRequestContext which stores cookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review changes, fix DownloadProtectionServiceTest Created 8 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/safe_browsing/download_protection_service_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_protection_service_unittest.cc b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
index 13c8c0bd580c8694321cf190a74a5364dd297ab3..a3c12b3a7d2bad9b4b4ebcbee44b9f6276a9d919 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -132,6 +132,7 @@ class DownloadProtectionServiceTest : public testing::Test {
file_thread_.reset(new content::TestBrowserThread(BrowserThread::FILE));
ASSERT_TRUE(file_thread_->Start());
sb_service_ = new StrictMock<MockSafeBrowsingService>();
+ sb_service_->Initialize();
signature_util_ = new StrictMock<MockSignatureUtil>();
download_service_ = sb_service_->download_protection_service();
download_service_->signature_util_ = signature_util_;
@@ -149,6 +150,7 @@ class DownloadProtectionServiceTest : public testing::Test {
}
virtual void TearDown() {
+ sb_service_->ShutDown();
// Flush all of the thread message loops to ensure that there are no
// tasks currently running.
FlushThreadMessageLoops();

Powered by Google App Engine
This is Rietveld 408576698