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

Unified Diff: chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_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/sandboxed_dmg_analyzer_mac_unittest.cc
diff --git a/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc b/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc
index 2d1689ff1e13cb30ff7f0d2b2ec1f9f689922d25..7b5f2db01f258b793ae37fb7f4a1b345d7012fd6 100644
--- a/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc
+++ b/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac_unittest.cc
@@ -15,6 +15,7 @@
#include "base/strings/string_number_conversions.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/safe_browsing/zip_analyzer_results.h"
+#include "content/public/browser/shell_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -28,6 +29,10 @@ class SandboxedDMGAnalyzerTest : public testing::Test {
: browser_thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
}
+ void SetUp() override {
+ shell_context_ = content::ShellContext::Create();
+ }
+
void AnalyzeFile(const base::FilePath& path,
zip_analyzer::Results* results) {
base::RunLoop run_loop;
@@ -74,6 +79,7 @@ class SandboxedDMGAnalyzerTest : public testing::Test {
content::TestBrowserThreadBundle browser_thread_bundle_;
content::InProcessUtilityThreadHelper utility_thread_helper_;
+ std::unique_ptr<content::ShellContext> shell_context_;
};
TEST_F(SandboxedDMGAnalyzerTest, AnalyzeDMG) {

Powered by Google App Engine
This is Rietveld 408576698