summaryrefslogtreecommitdiffstats
path: root/test/src/test-base64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/test-base64.cpp')
-rw-r--r--test/src/test-base64.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/src/test-base64.cpp b/test/src/test-base64.cpp
new file mode 100644
index 0000000..1267b7b
--- /dev/null
+++ b/test/src/test-base64.cpp
@@ -0,0 +1,18 @@
+#include "uscxml/util/Base64.hpp"
+#include <assert.h>
+
+#define SOURCE_LEN 10
+
+int main(int argc, char** argv) {
+ std::string data;
+ std::string base64CPP;
+ std::string base64C;
+
+ char buffer[SOURCE_LEN];
+ for (int i = 0; i < SOURCE_LEN; i++) {
+ buffer[i] = (char)55;
+ }
+
+ base64C = uscxml::base64Encode(buffer, SOURCE_LEN);
+
+} \ No newline at end of file