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

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

Issue 2112543002: Convert UtilityProcessHost to bootstrap Mojo Channel using the Shell connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@p9x
Patch Set: . Created 4 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
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 07405934e73cb365732d2ef9ed72316ab0d14dd9..57ee268f1dd98facf91febe9bf8f4c1b201b331a 100644
--- a/chrome/browser/safe_browsing/download_protection_service_unittest.cc
+++ b/chrome/browser/safe_browsing/download_protection_service_unittest.cc
@@ -46,6 +46,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/shell_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"
@@ -244,6 +245,7 @@ class DownloadProtectionServiceTest : public testing::Test {
content::TestBrowserThreadBundle::IO_MAINLOOP) {
}
void SetUp() override {
+ shell_context_ = content::ShellContext::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>();
@@ -531,6 +533,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::ShellContext> shell_context_;
base::FilePath testdata_path_;
DownloadProtectionService::ClientDownloadRequestSubscription
client_download_request_subscription_;

Powered by Google App Engine
This is Rietveld 408576698