Index: mojo/services/test_service/application.cc |
diff --git a/mojo/services/test_service/application.cc b/mojo/services/test_service/application.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5321da3a7d828456f5d31331f5e13c04dd9c6328 |
--- /dev/null |
+++ b/mojo/services/test_service/application.cc |
@@ -0,0 +1,35 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "mojo/public/cpp/application/application.h" |
+#include "mojo/public/cpp/system/macros.h" |
+#include "mojo/services/test_service/test_service_impl.h" |
+ |
+namespace mojo { |
+ |
sky
2014/06/06 00:02:00
nit: remove empty newline.
viettrungluu
2014/06/09 16:56:34
Done.
|
+namespace test { |
+namespace { |
+ |
+class TestServiceApplication : public Application { |
sky
2014/06/06 00:02:00
nit: I would name this file test_service_applicati
viettrungluu
2014/06/09 16:56:34
Done. I don't really care that much. (To irritate
|
+ public: |
+ TestServiceApplication() {} |
+ virtual ~TestServiceApplication() {} |
+ |
+ virtual void Initialize() MOJO_OVERRIDE { |
+ AddService<TestServiceImpl>(); |
+ } |
+ |
+ private: |
+ MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); |
+}; |
+ |
+} // namespace |
+} // namespace test |
+ |
+// static |
+Application* Application::Create() { |
+ return new mojo::test::TestServiceApplication(); |
+} |
+ |
+} // namespace mojo |