You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
930 B
38 lines
930 B
2 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose: Unit test program for testing of tier0 libraries
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
|
||
|
#include "unitlib/unitlib.h"
|
||
|
#include "appframework/IAppSystem.h"
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Used to connect/disconnect the DLL
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CTier0TestAppSystem : public CTier0AppSystem< IAppSystem >
|
||
|
{
|
||
|
typedef CTier0AppSystem< IAppSystem > BaseClass;
|
||
|
|
||
|
public:
|
||
|
virtual bool Connect( CreateInterfaceFn factory )
|
||
|
{
|
||
|
if ( !BaseClass::Connect( factory ) )
|
||
|
return false;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
virtual InitReturnVal_t Init()
|
||
|
{
|
||
|
return INIT_OK;
|
||
|
}
|
||
|
|
||
|
virtual void Shutdown()
|
||
|
{
|
||
|
BaseClass::Shutdown();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
USE_UNITTEST_APPSYSTEM( CTier0TestAppSystem )
|