Tests passing

This commit is contained in:
flamingcow
2019-05-04 23:46:26 -07:00
parent ef98af0ced
commit 740356a52e
47 changed files with 31 additions and 4 deletions

18
connection_afl.cc Normal file
View File

@@ -0,0 +1,18 @@
#include "connection.h"
int main(int argc, char* argv[]) {
FLAGS_logtostderr = 1;
FLAGS_minloglevel = 3;
google::InitGoogleLogging(argv[0]);
gflags::ParseCommandLineFlags(&argc, &argv, true);
{
firecgi::Connection conn(STDIN_FILENO, {}, [](std::unique_ptr<firecgi::Request> req) { req->End(); }, {});
static_cast<void>(conn.Read());
}
gflags::ShutDownCommandLineFlags();
google::ShutdownGoogleLogging();
return 0;
}