FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TF2-Source-Code/tf2_src/unittests/tier2test/tier2test.cpp at master · sr2echa/TF2-Source-Code · GitHub
sr2echa
/
TF2-Source-Code
Public
Notifications
You must be signed in to change notification settings
Fork
22
Star
80
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TF2-Source-Code
/
tf2_src
/
unittests
/
tier2test
/
tier2test.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (35 loc) · 1.07 KB
Breadcrumbs
TF2-Source-Code
/
tf2_src
/
unittests
/
tier2test
/
tier2test.cpp
Copy path
File metadata and controls
44 lines (35 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
========= Copyright Valve Corporation, All rights reserved. ============//
//
//
Purpose: Unit test program for testing of tier2 libraries
//
//
$NoKeywords: $
//
=============================================================================//
#
include
"
unitlib/unitlib.h
"
#
include
"
filesystem.h
"
#
include
"
tier2/tier2.h
"
#
include
"
mathlib/mathlib.h
"
//
-----------------------------------------------------------------------------
//
Used to connect/disconnect the DLL
//
-----------------------------------------------------------------------------
class
CTier2TestAppSystem
:
public
CTier2AppSystem
< IAppSystem >
{
typedef
CTier2AppSystem< IAppSystem > BaseClass;
public:
virtual
bool
Connect
( CreateInterfaceFn factory )
{
if
( !
BaseClass::Connect
( factory ) )
return
false
;
if
( !g_pFullFileSystem )
return
false
;
return
true
;
}
virtual
InitReturnVal_t
Init
()
{
MathLib_Init
(
2
.
2f
,
2
.
2f
,
0
.
0f
,
2
.
0f
);
InitReturnVal_t nRetVal =
BaseClass::Init
();
if
( nRetVal !=
INIT_OK
)
return
nRetVal;
return
INIT_OK
;
}
};
USE_UNITTEST_APPSYSTEM
( CTier2TestAppSystem )
Back
|
FazBrowse Home
|
New Git URL