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

Unified Diff: mojo/public/cpp/application/lib/application_test_main.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: mojo/public/cpp/application/lib/application_test_main.cc
diff --git a/mojo/public/cpp/application/lib/application_test_main.cc b/mojo/public/cpp/application/lib/application_test_main.cc
index 3f96a478126b47663d3437aa71b75826ebb6abe6..128d8aef350067ba168a146266740cc7696128a4 100644
--- a/mojo/public/cpp/application/lib/application_test_main.cc
+++ b/mojo/public/cpp/application/lib/application_test_main.cc
@@ -5,13 +5,10 @@
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_test_base.h"
#include "mojo/public/cpp/environment/environment.h"
-#include "mojo/public/interfaces/application/shell.mojom.h"
-MojoResult MojoMain(MojoHandle shell_handle) {
+MojoResult MojoMain(MojoHandle handle) {
// An Environment instance is needed to construct run loops.
mojo::Environment environment;
- mojo::ShellPtr shell;
- shell.Bind(MakeScopedHandle(mojo::MessagePipeHandle(shell_handle)));
- return mojo::test::RunAllTests(shell.Pass());
+ return mojo::test::RunAllTests(handle);
}

Powered by Google App Engine
This is Rietveld 408576698