summaryrefslogtreecommitdiff
path: root/src/rekonq_test.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rekonq_test.hpp')
-rw-r--r--src/rekonq_test.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/rekonq_test.hpp b/src/rekonq_test.hpp
new file mode 100644
index 00000000..ff30b8cf
--- /dev/null
+++ b/src/rekonq_test.hpp
@@ -0,0 +1,27 @@
+/* ============================================================
+ * The rekonq project
+ * ============================================================
+ * SPDX-License-Identifier: GPL-3.0-only
+ * Copyright (C) 2022 aqua <aqua@iserlohn-fortress.net>
+ * ============================================================
+ * Description: rekonq test definitions
+ * ============================================================ */
+
+#pragma once
+
+// GTest and GMock
+#include <gtest/gtest.h>
+
+// ------------------------------------------------------------
+// UNIT TESTS NEED
+
+#ifdef REKONQ_TEST
+#define REKONQ_TEST_VIRTUAL virtual
+#define REKONQ_TEST_PURE = 0
+#else
+#define REKONQ_TEST_VIRTUAL
+#define REKONQ_TEST_PURE
+#endif
+
+// ------------------------------------------------------------
+// GTest Matchers