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

Unified Diff: services/device/device_service_test_base.h

Issue 2774783003: [DeviceService] Add service tests for VibrationManager. (Closed)
Patch Set: Let service_test app itself register mojo JNIs Created 3 years, 9 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
Index: services/device/device_service_test_base.h
diff --git a/services/device/device_service_test_base.h b/services/device/device_service_test_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..4df7d1ea4549a6bc14d7cf9410be9c273306e84f
--- /dev/null
+++ b/services/device/device_service_test_base.h
@@ -0,0 +1,28 @@
+// Copyright 2017 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.
+
+#ifndef SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_
+#define SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_
+
+#include "base/macros.h"
+#include "services/service_manager/public/cpp/service_test.h"
+
+namespace device {
+
+// Base class responsible to setup Device Service for test.
+class DeviceServiceTestBase : public service_manager::test::ServiceTest {
+ public:
+ DeviceServiceTestBase();
+ ~DeviceServiceTestBase() override;
+
+ private:
+ // service_manager::test::ServiceTest:
+ std::unique_ptr<service_manager::Service> CreateService() override;
+
+ DISALLOW_COPY_AND_ASSIGN(DeviceServiceTestBase);
+};
+
+} // namespace device
+
+#endif // SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698