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

Unified Diff: shell/shell_apptest.cc

Issue 1983263002: Replace ApplicationImpl::CreateApplicationConnector() with a standalone helper function. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 | « mojo/ui/gl_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/shell_apptest.cc
diff --git a/shell/shell_apptest.cc b/shell/shell_apptest.cc
index 7f64883422096caccdaf53e4c22650610c09d12a..42a55478697821b94d24db9672237b681ca84b6a 100644
--- a/shell/shell_apptest.cc
+++ b/shell/shell_apptest.cc
@@ -224,13 +224,15 @@ void TestApplicationConnector(mojo::ApplicationConnector* app_connector) {
TEST_F(ShellAppTest, ApplicationConnector) {
mojo::ApplicationConnectorPtr app_connector;
- app_connector.Bind(application_impl()->CreateApplicationConnector());
+ app_connector.Bind(
+ mojo::CreateApplicationConnector(application_impl()->shell()));
TestApplicationConnector(app_connector.get());
}
TEST_F(ShellAppTest, ApplicationConnectorDuplicate) {
mojo::ApplicationConnectorPtr app_connector1;
- app_connector1.Bind(application_impl()->CreateApplicationConnector());
+ app_connector1.Bind(
+ mojo::CreateApplicationConnector(application_impl()->shell()));
{
SCOPED_TRACE("app_connector1");
TestApplicationConnector(app_connector1.get());
« no previous file with comments | « mojo/ui/gl_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698