Files
GameNetworkingSockets/tests/test_common.h
T
Fletcher Dunn 60fa445029 Refactor a few things in the test framework.
To support a p2p stress test that is currently specific to the steam branch.

P4:808802,8088026
2023-05-27 16:34:17 -07:00

28 lines
792 B
C++

// Misc stuff used in the tests
#pragma once
// Include a bunch of common headers, especially the ones that will configure
// Visual Studio memory allocation and check the _DEBUG flag. We are
// about to slam that flag to force assert to be enabled below.
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <string>
// Force asserts to be enabled, even in release build
#undef NDEBUG
#ifndef _DEBUG
#define _DEBUG
#endif
#include <assert.h>
struct SteamNetworkingIdentity;
extern void TEST_InitLog( const char *pszFilename );
extern void TEST_Printf( const char *fmt, ... );
extern void TEST_Fatal( const char *fmt, ... );
extern void TEST_Init( const SteamNetworkingIdentity *pIdentity );
extern void TEST_Kill();
extern void TEST_PumpCallbacks();