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

Unified Diff: mojo/services/test_service/test_service_impl.cc

Issue 314293002: Mojo: Add a trivial end-to-end (in-process) test of Mojo shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 6 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/services/test_service/test_service_impl.h ('k') | mojo/shell/shell_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/test_service/test_service_impl.cc
diff --git a/mojo/shell/shell_test_base.cc b/mojo/services/test_service/test_service_impl.cc
similarity index 52%
copy from mojo/shell/shell_test_base.cc
copy to mojo/services/test_service/test_service_impl.cc
index f258af474622e89d53bf720e298ac202fe07c7c6..b4e9c35dc97d53ce1691b7fe3d683f806dbbfc6e 100644
--- a/mojo/shell/shell_test_base.cc
+++ b/mojo/services/test_service/test_service_impl.cc
@@ -2,18 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/shell/shell_test_base.h"
+#include "mojo/services/test_service/test_service_impl.h"
namespace mojo {
-namespace shell {
namespace test {
-ShellTestBase::ShellTestBase() {
+TestServiceImpl::TestServiceImpl() {
}
-ShellTestBase::~ShellTestBase() {
+TestServiceImpl::~TestServiceImpl() {
+}
+
+void TestServiceImpl::Ping(const mojo::Callback<void()>& callback) {
+ callback.Run();
}
} // namespace test
-} // namespace shell
} // namespace mojo
« no previous file with comments | « mojo/services/test_service/test_service_impl.h ('k') | mojo/shell/shell_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698