sourcehook/test/sourcehook_test.h
branchsourcemm-1.6.0
changeset 428 40a9d2f61121
parent 370 4dc28ab1c722
child 429 cadecde4b802
     1.1 --- a/sourcehook/test/sourcehook_test.h	Thu Oct 04 19:46:28 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,27 +0,0 @@
     1.4 -// This file is used for backwards compatibility testing
     1.5 -// It allows us to test binary backwards compatibility by using an older include file HERE:
     1.6 -#include "sourcehook.h"			// <-- here
     1.7 -// There. main.cpp which implements all of the following function is always usign sourcehook.h
     1.8 -// and the up-to-date sourcehook_impl.h/sourcehook.cpp. The tests use this file however.
     1.9 -// If the test needs an up-to-date version (like the recall test), it can simply
    1.10 -// #include "sourcehook.h" before including this, thus overriding our decision.
    1.11 -
    1.12 -
    1.13 -SourceHook::ISourceHook *Test_Factory();
    1.14 -void Test_Delete(SourceHook::ISourceHook *shptr);
    1.15 -
    1.16 -struct CSHPtrAutoDestruction
    1.17 -{
    1.18 -	SourceHook::ISourceHook *m_SHPtr;
    1.19 -	CSHPtrAutoDestruction(SourceHook::ISourceHook *shptr) : m_SHPtr(shptr) {}
    1.20 -	~CSHPtrAutoDestruction() { Test_Delete(m_SHPtr); }
    1.21 -};
    1.22 -
    1.23 -#define GET_SHPTR(var) var = Test_Factory(); CSHPtrAutoDestruction ___autodestruction(var);
    1.24 -
    1.25 -// Access to CSourceHookImpl functions
    1.26 -void Test_CompleteShutdown(SourceHook::ISourceHook *shptr);
    1.27 -bool Test_IsPluginInUse(SourceHook::ISourceHook *shptr, SourceHook::Plugin plug);
    1.28 -void Test_UnloadPlugin(SourceHook::ISourceHook *shptr, SourceHook::Plugin plug);
    1.29 -void Test_PausePlugin(SourceHook::ISourceHook *shptr, SourceHook::Plugin plug);
    1.30 -void Test_UnpausePlugin(SourceHook::ISourceHook *shptr, SourceHook::Plugin plug);