#include "config.h"
#ifndef RECURSOR
#include "statbag.hh"
+#include "base64.hh"
StatBag S;
#endif
};
+struct Base64EncodeTest
+{
+ string getName() const
+ {
+ return "Bas64Encode test";
+ }
+
+ void operator()() const
+ {
+ static string a("dq4KydZjmcoQQ45VYBP2EDR8FqKaMul0eSHBt7Xx5F7A4HFtabXEzDLD01bnSiGK");
+ Base64Encode(a);
+ }
+};
+
+
+struct B64DecodeTest
+{
+ string getName() const
+ {
+ return "B64Decode test";
+ }
+
+ void operator()() const
+ {
+ static string a("ZHE0S3lkWmptY29RUTQ1VllCUDJFRFI4RnFLYU11bDBlU0hCdDdYeDVGN0E0SEZ0YWJYRXpETEQwMWJuU2lHSw=="), b;
+ g_ret = B64Decode(a,b);
+ }
+};
+
+
struct NOPTest
{
string getName() const
doRun(IEqualsTest());
doRun(MyIEqualsTest());
doRun(StrcasecmpTest());
+ doRun(Base64EncodeTest());
+ doRun(B64DecodeTest());
doRun(StackMallocTest());