Fix BackgroundApplicationLoaderTest
TBR=blundell@chromium.org
Review URL: https://codereview.chromium.org/1131033002
diff --git a/shell/background_application_loader_unittest.cc b/shell/background_application_loader_unittest.cc
index ef47060..b9af70c 100644
--- a/shell/background_application_loader_unittest.cc
+++ b/shell/background_application_loader_unittest.cc
@@ -5,6 +5,7 @@
#include "shell/background_application_loader.h"
#include "mojo/public/interfaces/application/application.mojom.h"
+#include "shell/context.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace shell {
@@ -31,6 +32,7 @@
// Tests that the loader can start and stop gracefully.
TEST(BackgroundApplicationLoaderTest, StartStop) {
+ Context::EnsureEmbedderIsInitialized();
scoped_ptr<ApplicationLoader> real_loader(new DummyLoader());
BackgroundApplicationLoader loader(real_loader.Pass(), "test",
base::MessageLoop::TYPE_DEFAULT);
@@ -39,6 +41,7 @@
// Tests that the loader can load a service that is well behaved (quits
// itself).
TEST(BackgroundApplicationLoaderTest, Load) {
+ Context::EnsureEmbedderIsInitialized();
scoped_ptr<ApplicationLoader> real_loader(new DummyLoader());
BackgroundApplicationLoader loader(real_loader.Pass(), "test",
base::MessageLoop::TYPE_DEFAULT);