aboutsummaryrefslogtreecommitdiff
path: root/zenserver/testing/launch.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-11 13:05:39 +0200
committerStefan Boberg <[email protected]>2021-05-11 13:05:39 +0200
commitf8d9ac5d13dd37b8b57af0478e77ba1e75c813aa (patch)
tree1daf7621e110d48acd5e12e3073ce48ef0dd11b2 /zenserver/testing/launch.h
downloadzen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.tar.xz
zen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.zip
Adding zenservice code
Diffstat (limited to 'zenserver/testing/launch.h')
-rw-r--r--zenserver/testing/launch.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/zenserver/testing/launch.h b/zenserver/testing/launch.h
new file mode 100644
index 000000000..5dd946eda
--- /dev/null
+++ b/zenserver/testing/launch.h
@@ -0,0 +1,31 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#pragma once
+
+#include <zencore/httpserver.h>
+
+#include <spdlog/spdlog.h>
+
+namespace zen {
+
+class CasStore;
+
+/**
+ * Process launcher for test executables
+ */
+class HttpLaunchService : public HttpService
+{
+public:
+ HttpLaunchService(CasStore& Store);
+ ~HttpLaunchService();
+
+ virtual const char* BaseUri() const override;
+ virtual void HandleRequest(HttpServerRequest& Request) override;
+
+private:
+ spdlog::logger m_Log;
+ HttpRequestRouter m_Router;
+ CasStore& m_CasStore;
+};
+
+} // namespace zen