APEX Framework: TestBase.h Source File

NVIDIA APEX

TestBase.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2017, NVIDIA CORPORATION.  All rights reserved.
00003  *
00004  * NVIDIA CORPORATION and its licensors retain all intellectual property
00005  * and proprietary rights in and to this software, related documentation
00006  * and any modifications thereto.  Any use, reproduction, disclosure or
00007  * distribution of this software and related documentation without an express
00008  * license agreement from NVIDIA CORPORATION is strictly prohibited.
00009  */
00010 
00011 
00012 #ifndef TEST_BASE_H
00013 #define TEST_BASE_H
00014 
00015 #include "ApexUsingNamespace.h"
00016 
00022 namespace nvidia
00023 {
00024 
00025 namespace apex
00026 {
00027 
00028 class Actor;
00029 
00033 class TestFunctionInterface
00034 {
00035 public:
00036 
00040     TestFunctionInterface(const char* name) : mName(name) {}
00041     
00045     virtual bool run(void*, void*) = 0;
00046     
00050     virtual bool check(void*, void*) = 0;
00051 
00055     virtual bool runGpu(void*, void*, void*) = 0;
00056 
00060     const char* mName;
00061 };
00062 
00066 class TestBase
00067 {
00068 public:
00069 
00075     virtual const char* getUnitTestsName(uint32_t unitTestsIndex) const = 0;
00076 
00082     virtual uint32_t getUnitTestsIndex(const char* unitTestsName) const = 0;
00083 
00090     virtual bool runUnitTests(uint32_t unitTestsID, void* dataPtr) const = 0;
00091 
00095     virtual bool checkUnitTests(uint32_t unitTestsID, void* dataPtr) const = 0;
00096 
00100     virtual uint32_t getUnitTestsCount() const = 0;
00101 
00111     virtual void setRuntimeCheckLevel(uint32_t level) = 0;
00112 };
00113 
00114 
00115 }; // end of apex namespace
00116 }; // end of nvidia namespace
00117 
00118 #endif

Generated on Fri Dec 15 2017 13:58:35
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.