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
3 // found in the LICENSE file.
5 #include "mojo/examples/apptest/example_service_impl.h"
7 #include "mojo/public/cpp/utility/run_loop.h"
11 ExampleServiceImpl::ExampleServiceImpl() {}
13 ExampleServiceImpl::~ExampleServiceImpl() {}
15 void ExampleServiceImpl::Ping(uint16_t ping_value) {
16 client()->Pong(ping_value);
17 RunLoop::current()->Quit();
20 void ExampleServiceImpl::RunCallback(const Callback<void()>& callback) {
22 RunLoop::current()->Quit();