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

Unified Diff: extensions/browser/sandboxed_unpacker_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
« no previous file with comments | « extensions/browser/extensions_test.cc ('k') | services/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/sandboxed_unpacker_unittest.cc
diff --git a/extensions/browser/sandboxed_unpacker_unittest.cc b/extensions/browser/sandboxed_unpacker_unittest.cc
index 0e3bf9e7a33a132937e60b394017851808e4a0c9..6677b5dace3997cc68ccfdd8b04565ec24fcf291 100644
--- a/extensions/browser/sandboxed_unpacker_unittest.cc
+++ b/extensions/browser/sandboxed_unpacker_unittest.cc
@@ -13,6 +13,8 @@
#include "base/threading/thread_task_runner_handle.h"
#include "base/values.h"
#include "components/crx_file/id_util.h"
+#include "content/public/browser/shell_context.h"
+#include "content/public/common/content_client.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/extensions_test.h"
@@ -73,6 +75,8 @@ class SandboxedUnpackerTest : public ExtensionsTest {
// It will delete itself.
client_ = new MockSandboxedUnpackerClient;
+ shell_context_ = content::ShellContext::Create();
+
sandboxed_unpacker_ = new SandboxedUnpacker(
Manifest::INTERNAL, Extension::NO_FLAGS, extensions_dir_.path(),
base::ThreadTaskRunnerHandle::Get(), client_);
@@ -134,6 +138,7 @@ class SandboxedUnpackerTest : public ExtensionsTest {
std::unique_ptr<content::TestBrowserThreadBundle> browser_threads_;
std::unique_ptr<content::InProcessUtilityThreadHelper>
in_process_utility_thread_helper_;
+ std::unique_ptr<content::ShellContext> shell_context_;
};
TEST_F(SandboxedUnpackerTest, NoCatalogsSuccess) {
« no previous file with comments | « extensions/browser/extensions_test.cc ('k') | services/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698