summaryrefslogtreecommitdiff
path: root/tests/test-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-common.h')
-rw-r--r--tests/test-common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-common.h b/tests/test-common.h
index 2c4c54e..57bf83b 100644
--- a/tests/test-common.h
+++ b/tests/test-common.h
@@ -28,6 +28,8 @@
#include "colour_log_formatter.h"
+#include "types.h"
+
/* fixtures should be declared on outside of namespace */
struct TestConfig {
TestConfig()
@@ -45,7 +47,10 @@ namespace Wae {
namespace Test {
std::string bytes_to_hex(const std::vector<unsigned char> &bytes);
-std::vector<unsigned char> bytearr_to_vec(const unsigned char *bytes, size_t len);
+std::string bytes_to_hex(const unsigned char *ptr, size_t len);
+std::string bytes_to_hex(const raw_buffer_s *rb);
+std::vector<unsigned char> bytearr_to_vec(const unsigned char *ptr, size_t len);
+std::vector<unsigned char> bytearr_to_vec(const raw_buffer_s *);
} // namespace Test
} // namespace Wae