1*35ffd701SAndroid Build Coastguard Worker /*============================================================================== 2*35ffd701SAndroid Build Coastguard Worker Copyright(c) 2017 Intel Corporation 3*35ffd701SAndroid Build Coastguard Worker 4*35ffd701SAndroid Build Coastguard Worker Permission is hereby granted, free of charge, to any person obtaining a 5*35ffd701SAndroid Build Coastguard Worker copy of this software and associated documentation files(the "Software"), 6*35ffd701SAndroid Build Coastguard Worker to deal in the Software without restriction, including without limitation 7*35ffd701SAndroid Build Coastguard Worker the rights to use, copy, modify, merge, publish, distribute, sublicense, 8*35ffd701SAndroid Build Coastguard Worker and / or sell copies of the Software, and to permit persons to whom the 9*35ffd701SAndroid Build Coastguard Worker Software is furnished to do so, subject to the following conditions: 10*35ffd701SAndroid Build Coastguard Worker 11*35ffd701SAndroid Build Coastguard Worker The above copyright notice and this permission notice shall be included 12*35ffd701SAndroid Build Coastguard Worker in all copies or substantial portions of the Software. 13*35ffd701SAndroid Build Coastguard Worker 14*35ffd701SAndroid Build Coastguard Worker THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15*35ffd701SAndroid Build Coastguard Worker OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*35ffd701SAndroid Build Coastguard Worker FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17*35ffd701SAndroid Build Coastguard Worker THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 18*35ffd701SAndroid Build Coastguard Worker OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19*35ffd701SAndroid Build Coastguard Worker ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20*35ffd701SAndroid Build Coastguard Worker OTHER DEALINGS IN THE SOFTWARE. 21*35ffd701SAndroid Build Coastguard Worker ============================================================================*/ 22*35ffd701SAndroid Build Coastguard Worker 23*35ffd701SAndroid Build Coastguard Worker #pragma once 24*35ffd701SAndroid Build Coastguard Worker 25*35ffd701SAndroid Build Coastguard Worker #include "stdafx.h" 26*35ffd701SAndroid Build Coastguard Worker 27*35ffd701SAndroid Build Coastguard Worker typedef GMM_STATUS (GMM_STDCALL *PFNGMMINIT)(GMM_INIT_IN_ARGS *pInArgs, GMM_INIT_OUT_ARGS *pOutArgs); 28*35ffd701SAndroid Build Coastguard Worker typedef void(GMM_STDCALL *PFNGMMDESTROY)(GMM_INIT_OUT_ARGS *pInArgs); 29*35ffd701SAndroid Build Coastguard Worker 30*35ffd701SAndroid Build Coastguard Worker class CommonULT : public testing::Test 31*35ffd701SAndroid Build Coastguard Worker { 32*35ffd701SAndroid Build Coastguard Worker public: 33*35ffd701SAndroid Build Coastguard Worker static void SetUpTestCase(); 34*35ffd701SAndroid Build Coastguard Worker static void TearDownTestCase(); 35*35ffd701SAndroid Build Coastguard Worker static void AllocateAdapterInfo(); 36*35ffd701SAndroid Build Coastguard Worker 37*35ffd701SAndroid Build Coastguard Worker protected: 38*35ffd701SAndroid Build Coastguard Worker static ADAPTER_INFO *pGfxAdapterInfo; 39*35ffd701SAndroid Build Coastguard Worker static PLATFORM GfxPlatform; 40*35ffd701SAndroid Build Coastguard Worker 41*35ffd701SAndroid Build Coastguard Worker static GMM_CLIENT_CONTEXT *pGmmULTClientContext; 42*35ffd701SAndroid Build Coastguard Worker static PFNGMMINIT pfnGmmInit; 43*35ffd701SAndroid Build Coastguard Worker static PFNGMMDESTROY pfnGmmDestroy; 44*35ffd701SAndroid Build Coastguard Worker 45*35ffd701SAndroid Build Coastguard Worker #ifdef _WIN32 46*35ffd701SAndroid Build Coastguard Worker static HINSTANCE hGmmLib; 47*35ffd701SAndroid Build Coastguard Worker #else 48*35ffd701SAndroid Build Coastguard Worker static void *hGmmLib; 49*35ffd701SAndroid Build Coastguard Worker #endif 50*35ffd701SAndroid Build Coastguard Worker 51*35ffd701SAndroid Build Coastguard Worker }; 52