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

Unified Diff: mojo/shell/runner/child/native_apptest.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 | « mojo/shell/public/cpp/shell.h ('k') | mojo/shell/runner/child/native_apptest_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/child/native_apptest.cc
diff --git a/mojo/shell/runner/child/native_apptest.cc b/mojo/shell/runner/child/native_apptest.cc
index d15498c26ff0f4abb5bdc449c13b77164086f56d..837f2e0c470e9488ad7636502cc06003d59102ea 100644
--- a/mojo/shell/runner/child/native_apptest.cc
+++ b/mojo/shell/runner/child/native_apptest.cc
@@ -5,7 +5,6 @@
#include "base/bind.h"
#include "base/macros.h"
#include "mojo/converters/network/network_type_converters.h"
-#include "mojo/shell/public/cpp/application_impl.h"
#include "mojo/shell/public/cpp/application_test_base.h"
#include "mojo/shell/runner/child/test_native_service.mojom.h"
@@ -21,8 +20,8 @@ using NativeAppTest = mojo::test::ApplicationTestBase;
TEST_F(NativeAppTest, Connect) {
test::TestNativeServicePtr native_service;
- application_impl()->ConnectToService(
- "exe:mojo_runner_child_apptest_native_target", &native_service);
+ shell()->ConnectToService("exe:mojo_runner_child_apptest_native_target",
+ &native_service);
bool result = false;
native_service->Invert(
« no previous file with comments | « mojo/shell/public/cpp/shell.h ('k') | mojo/shell/runner/child/native_apptest_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698