| Index: mojo/examples/apptest/example_apptest.cc
|
| diff --git a/mojo/examples/apptest/example_apptest.cc b/mojo/examples/apptest/example_apptest.cc
|
| index 2324b14417b8ad31a9a2314903952cca4087c9ec..d029a6a61b1f6a2a511630af56292387cb529b90 100644
|
| --- a/mojo/examples/apptest/example_apptest.cc
|
| +++ b/mojo/examples/apptest/example_apptest.cc
|
| @@ -2,9 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "mojo/examples/apptest/example_client_application.h"
|
| #include "mojo/examples/apptest/example_client_impl.h"
|
| #include "mojo/examples/apptest/example_service.mojom.h"
|
| #include "mojo/public/cpp/application/application_delegate.h"
|
| +#include "mojo/public/cpp/application/application_export.h"
|
| #include "mojo/public/cpp/application/application_impl.h"
|
| #include "mojo/public/cpp/bindings/callback.h"
|
| #include "mojo/public/cpp/environment/environment.h"
|
| @@ -76,9 +78,10 @@ extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
|
| mojo::Environment env;
|
| mojo::RunLoop loop;
|
|
|
| - mojo::ApplicationDelegate* delegate = mojo::ApplicationDelegate::Create();
|
| - mojo::ApplicationImpl app(delegate);
|
| - app.BindShell(shell_handle);
|
| + // TODO(tim): Perhaps the delegate should be the thing that provides
|
| + // the ExampleServiceTest with the ApplicationImpl somehow.
|
| + mojo::ApplicationDelegate* delegate = new mojo::ExampleClientApplication();
|
| + mojo::ApplicationImpl app(delegate, shell_handle);
|
| g_application_impl_hack = &app;
|
|
|
| // TODO(msw): Get actual commandline arguments.
|
|
|