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

Unified Diff: shell/android/background_application_loader_unittest.cc

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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
Index: shell/android/background_application_loader_unittest.cc
diff --git a/shell/android/background_application_loader_unittest.cc b/shell/android/background_application_loader_unittest.cc
index 176cdded1578d01f33c50973a6b574393d422b82..62e9234e9e5a45c66bf23e9dedd16e4ed868c16b 100644
--- a/shell/android/background_application_loader_unittest.cc
+++ b/shell/android/background_application_loader_unittest.cc
@@ -4,6 +4,7 @@
#include "shell/android/background_application_loader.h"
+#include "mojo/public/interfaces/application/application.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo {
@@ -18,7 +19,7 @@ class DummyLoader : public ApplicationLoader {
// ApplicationLoader overrides:
void Load(ApplicationManager* manager,
const GURL& url,
- ShellPtr shell,
+ InterfaceRequest<Application> application_request,
LoadCallback callback) override {
if (simulate_app_quit_)
base::MessageLoop::current()->Quit();
@@ -48,9 +49,8 @@ TEST(BackgroundApplicationLoaderTest, Load) {
scoped_ptr<ApplicationLoader> real_loader(new DummyLoader());
BackgroundApplicationLoader loader(real_loader.Pass(), "test",
base::MessageLoop::TYPE_DEFAULT);
- ShellPtr shell;
- auto dummy = GetProxy(&shell);
- loader.Load(NULL, GURL(), shell.Pass(),
+ ApplicationPtr application;
+ loader.Load(NULL, GURL(), GetProxy(&application),
ApplicationLoader::SimpleLoadCallback());
}

Powered by Google App Engine
This is Rietveld 408576698