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

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

Issue 2163883005: WIP: Obtain Bootstrap from utility process Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 71ae6ad3b153b5d6f105d735c8b2d1e094d66c69..c567e537a1a05805ec011b78cc4f4525d13eeca5 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -45,6 +45,7 @@
#include "components/safe_browsing_db/test_database_manager.h"
#include "content/public/browser/download_danger_type.h"
#include "content/public/browser/page_navigator.h"
+#include "content/public/browser/service_manager_context.h"
#include "content/public/test/mock_download_item.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
@@ -243,6 +244,7 @@ class DownloadProtectionServiceTest : public testing::Test {
content::TestBrowserThreadBundle::IO_MAINLOOP) {
}
void SetUp() override {
+ service_manager_context_ = content::ServiceManagerContext::Create();
// Start real threads for the IO and File threads so that the DCHECKs
// to test that we're on the correct thread work.
sb_service_ = new StrictMock<FakeSafeBrowsingService>();
@@ -530,6 +532,7 @@ class DownloadProtectionServiceTest : public testing::Test {
bool has_result_;
content::TestBrowserThreadBundle test_browser_thread_bundle_;
content::InProcessUtilityThreadHelper in_process_utility_thread_helper_;
+ std::unique_ptr<content::ServiceManagerContext> service_manager_context_;
base::FilePath testdata_path_;
DownloadProtectionService::ClientDownloadRequestSubscription
client_download_request_subscription_;

Powered by Google App Engine
This is Rietveld 408576698