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

Unified Diff: headless/lib/embedder_mojo_browsertest.cc

Issue 2489673005: [headless] Make browser service manifest overlay configurable. (Closed)
Patch Set: fix includes. Created 4 years, 1 month 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: headless/lib/embedder_mojo_browsertest.cc
diff --git a/headless/lib/embedder_mojo_browsertest.cc b/headless/lib/embedder_mojo_browsertest.cc
index 512a8745c99256a21f7a0fde69826cf47613df69..3fb4ed1a5f5e6d1ca2b642c714c6f5290774cbce 100644
--- a/headless/lib/embedder_mojo_browsertest.cc
+++ b/headless/lib/embedder_mojo_browsertest.cc
@@ -5,6 +5,7 @@
#include <memory>
#include "base/optional.h"
#include "base/path_service.h"
+#include "base/strings/string_piece.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_restrictions.h"
#include "content/public/test/browser_test.h"
@@ -49,6 +50,13 @@ class EmbedderMojoTest : public HeadlessBrowserTest,
~EmbedderMojoTest() override {}
+ void SetUp() override {
+ // Set service names before they are used during main thread initialization.
+ options()->mojo_service_names.insert("embedder_test::TestEmbedderService");
+
+ HeadlessBrowserTest::SetUp();
+ }
+
void SetUpOnMainThread() override {
base::ThreadRestrictions::SetIOAllowed(true);
base::FilePath pak_path;
« no previous file with comments | « headless/lib/browser/headless_content_browser_client.cc ('k') | headless/lib/resources/headless_lib_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698