From 0bf5450365934c39ed0bb480712adaab2fa54386 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 26 Jan 2020 23:14:53 +0200 Subject: pluginloader: add test for PluginLoader::verify --- lib/pluginloader/test/pluginloader-sigmatch.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/pluginloader/test/pluginloader-sigmatch.cpp (limited to 'lib/pluginloader/test/pluginloader-sigmatch.cpp') diff --git a/lib/pluginloader/test/pluginloader-sigmatch.cpp b/lib/pluginloader/test/pluginloader-sigmatch.cpp new file mode 100644 index 0000000..2e5a1ff --- /dev/null +++ b/lib/pluginloader/test/pluginloader-sigmatch.cpp @@ -0,0 +1,17 @@ +#include "pluginloader.h" +#include + +PluginLoader *loader = nullptr; + +TEST(PluginLoader, SignatureMatcher) { + EXPECT_TRUE(loader->verify()); +} + +int main(int argc, char **argv) +{ + const PluginLoader::SignatureState state(false, true, false); + loader = new PluginLoader(qgetenv("SIGNEDFILE"), state); + + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} -- cgit v1.2.1