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

Side by Side Diff: mojo/examples/apptest/example_client_impl.cc

Issue 399653004: Add a Mojo example apptest that runs in mojo_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use mojo_ignore_result for RUN_ALL_TESTS(). Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/public/cpp/application/application_impl.h" 5 #include "mojo/examples/apptest/example_client_impl.h"
6 #include "mojo/public/cpp/utility/run_loop.h" 6 #include "mojo/public/cpp/utility/run_loop.h"
7 7
8 namespace mojo { 8 namespace mojo {
9 9
10 void ApplicationImpl::Terminate() { 10 ExampleClientImpl::ExampleClientImpl() : last_pong_value_(0) {}
11 ExampleClientImpl::~ExampleClientImpl() {}
12
13 void ExampleClientImpl::Pong(uint16_t pong_value) {
14 last_pong_value_ = pong_value;
11 mojo::RunLoop::current()->Quit(); 15 mojo::RunLoop::current()->Quit();
12 } 16 }
13 17
14 } // namespace mojo 18 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/apptest/example_client_impl.h ('k') | mojo/examples/apptest/example_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698