Index: shell/background_application_loader_unittest.cc |
diff --git a/shell/background_application_loader_unittest.cc b/shell/background_application_loader_unittest.cc |
index ef47060d397a6445973cc6c79d103f5155207d33..b9af70cb0c4227e2b82792893befbeba0cd2ee62 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 @@ class DummyLoader : public ApplicationLoader { |
// 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 @@ TEST(BackgroundApplicationLoaderTest, StartStop) { |
// 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); |