diff options
author | fearlessTobi <thm.frey@gmail.com> | 2018-10-26 16:21:45 +0200 |
---|---|---|
committer | fearlessTobi <thm.frey@gmail.com> | 2018-10-28 13:23:02 +0100 |
commit | 585b6a6a5037f9ef630a244ede18ac7854955fc6 (patch) | |
tree | b075695e9eccd8324ef60558dd4dc1c7c62c2546 /src/core | |
parent | Merge pull request #1596 from FearlessTobi/port-4367 (diff) | |
download | yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.tar yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.tar.gz yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.tar.bz2 yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.tar.lz yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.tar.xz yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.tar.zst yuzu-585b6a6a5037f9ef630a244ede18ac7854955fc6.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/telemetry_session.cpp | 9 | ||||
-rw-r--r-- | src/core/telemetry_session.h | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index 0de13edd3..a3b08c740 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -184,4 +184,13 @@ TelemetrySession::~TelemetrySession() { backend = nullptr; } +bool TelemetrySession::SubmitTestcase() { +#ifdef ENABLE_WEB_SERVICE + field_collection.Accept(*backend); + return backend->SubmitTestcase(); +#else + return false; +#endif +} + } // namespace Core diff --git a/src/core/telemetry_session.h b/src/core/telemetry_session.h index 2a4845797..023612b79 100644 --- a/src/core/telemetry_session.h +++ b/src/core/telemetry_session.h @@ -31,6 +31,12 @@ public: field_collection.AddField(type, name, std::move(value)); } + /** + * Submits a Testcase. + * @returns A bool indicating whether the submission succeeded + */ + bool SubmitTestcase(); + private: Telemetry::FieldCollection field_collection; ///< Tracks all added fields for the session std::unique_ptr<Telemetry::VisitorInterface> backend; ///< Backend interface that logs fields |