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

Unified Diff: shell/background_application_loader_unittest.cc

Issue 1131033002: Fix BackgroundApplicationLoaderTest (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698