1 #ifndef _GLCTESTPACKAGE_HPP
2 #define _GLCTESTPACKAGE_HPP
3 /*-------------------------------------------------------------------------
4 * OpenGL Conformance Test Suite
5 * -----------------------------
7 * Copyright (c) 2016 Google Inc.
8 * Copyright (c) 2016 The Khronos Group Inc.
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
24 * \brief OpenGL Conformance Test Package Base Class
25 */ /*-------------------------------------------------------------------*/
27 #include "glcContext.hpp"
28 #include "glcTestCaseWrapper.hpp"
29 #include "tcuDefs.hpp"
30 #include "tcuResource.hpp"
31 #include "tcuTestPackage.hpp"
39 PackageContext(tcu::TestContext& testCtx, glu::ContextType renderContextType);
40 ~PackageContext(void);
42 Context& getContext(void)
46 TestCaseWrapper& getTestCaseWrapper(void)
53 TestCaseWrapper m_caseWrapper;
56 class TestPackage : public tcu::TestPackage
59 TestPackage(tcu::TestContext& testCtx, const char* name, const char* description,
60 glu::ContextType renderContextType, const char* resourcesPath);
61 virtual ~TestPackage(void);
66 TestCaseWrapper& getTestCaseWrapper(void)
68 return m_packageCtx->getTestCaseWrapper();
70 tcu::Archive* getArchive(void)
75 Context& getContext(void)
77 return m_packageCtx->getContext();
81 TestPackage(const TestPackage& other);
82 TestPackage& operator=(const TestPackage& other);
84 glu::ContextType m_renderContextType;
86 PackageContext* m_packageCtx;
87 tcu::ResourcePrefix m_archive;
92 #endif // _GLCTESTPACKAGE_HPP