inital commit of the tester

This commit is contained in:
2017-12-27 13:47:10 +01:00
parent c7b6246025
commit 3d1dddba12
9 changed files with 136 additions and 4 deletions

View File

@@ -1,9 +1,24 @@
#include <Windows.h>
#include <cstdint>
#include <iostream>
#include "../test_cases/test_cases.h"
#pragma comment(lib, "..\\x64\\debug\\test_cases.lib")
#include "abstracthook.h"
#include "mhook.h"
#pragma comment(lib, "..\\x64\\release\\test_cases.lib")
extern AbstractHookEngine* g_mhook;
int main(int argc, char** argv) {
SelfTest();
AbstractHookEngine* engines[] = {
g_mhook,
};
for(auto&& x : engines) {
x->hook_all();
SelfTest();
std::cout << x->name() << ':' << x->all_hooked() << '\n';
x->unhook_all();
}
}