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

Unified Diff: chrome/browser/safe_browsing/sandboxed_zip_analyzer_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
« no previous file with comments | « chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc
diff --git a/chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc b/chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc
index d29f7a984f5926b93461b7fa7cd6d335ac427f69..5b5486ee4d3bfb00c35cedf8810e34d3f9abe5a7 100644
--- a/chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc
+++ b/chrome/browser/safe_browsing/sandboxed_zip_analyzer_unittest.cc
@@ -15,6 +15,7 @@
#include "build/build_config.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/safe_browsing/zip_analyzer_results.h"
+#include "content/public/browser/service_manager_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
#include "crypto/sha2.h"
@@ -62,7 +63,9 @@ class SandboxedZipAnalyzerTest : public ::testing::Test {
};
SandboxedZipAnalyzerTest()
- : browser_thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {}
+ : browser_thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
+ service_manager_context_ = content::ServiceManagerContext::Create();
+ }
void SetUp() override {
ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &dir_test_data_));
@@ -138,6 +141,7 @@ class SandboxedZipAnalyzerTest : public ::testing::Test {
base::FilePath dir_test_data_;
content::TestBrowserThreadBundle browser_thread_bundle_;
content::InProcessUtilityThreadHelper utility_thread_helper_;
+ std::unique_ptr<content::ServiceManagerContext> service_manager_context_;
};
// static
« no previous file with comments | « chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698