Use less c++

As a design, it would be better if we didn't need to have a dependency
on c++ in a c library.  Moving things to C will reduce both
dependencies and compile times.

Reduced dependencies makes the library itself easier to use in
more environments.

libmctp Is a library that doesn't take a dependency on gtest for its
tests
libpldm Is an example that does take a dependency on gtest.

Change-Id: If1dc638f87b75b28181a0baf67f5a18d389cff81
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/tests/test-utils.h b/tests/test-utils.h
new file mode 100644
index 0000000..a7fb723
--- /dev/null
+++ b/tests/test-utils.h
@@ -0,0 +1,30 @@
+#ifndef CPER_IR_TEST_UTILS_H
+#define CPER_IR_TEST_UTILS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdio.h>
+#include <libcper/BaseTypes.h>
+#include <libcper/generator/sections/gen-section.h>
+#include <json.h>
+
+// Controls whether required properties are added to the majority of property
+// definitions.  This is useful for unit tests that are validating JSON where
+// all fields are valid
+enum AddRequiredProps { AddRequired, NoModify };
+
+FILE *generate_record_memstream(const char **types, UINT16 num_types,
+				char **buf, size_t *buf_size,
+				int single_section,
+				GEN_VALID_BITS_TEST_TYPE validBitsType);
+
+int schema_validate_from_file(json_object *to_test, int single_section,
+			      int all_valid_bits);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif