Home | History | Annotate | Download | only in common
      1 #ifndef _GLCNOERRORTESTS_HPP
      2 #define _GLCNOERRORTESTS_HPP
      3 /*-------------------------------------------------------------------------
      4  * OpenGL Conformance Test Suite
      5  * -----------------------------
      6  *
      7  * Copyright (c) 2017 The Khronos Group Inc.
      8  *
      9  * Licensed under the Apache License, Version 2.0 (the "License");
     10  * you may not use this file except in compliance with the License.
     11  * You may obtain a copy of the License at
     12  *
     13  *      http://www.apache.org/licenses/LICENSE-2.0
     14  *
     15  * Unless required by applicable law or agreed to in writing, software
     16  * distributed under the License is distributed on an "AS IS" BASIS,
     17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     18  * See the License for the specific language governing permissions and
     19  * limitations under the License.
     20  *
     21  */ /*!
     22  * \file
     23  * \brief
     24  */ /*-------------------------------------------------------------------*/
     25 
     26 /**
     27  */ /*!
     28  * \file  glcNoErrorTests.hpp
     29  * \brief Conformance tests for the GL_KHR_no_error functionality.
     30  */ /*--------------------------------------------------------------------*/
     31 
     32 #include "glcTestCase.hpp"
     33 #include "glwDefs.hpp"
     34 #include "tcuDefs.hpp"
     35 
     36 namespace glcts
     37 {
     38 /** Test verifies if it is possible to create context with
     39 	 *  CONTEXT_FLAG_NO_ERROR_BIT_KHR flag set in CONTEXT_FLAGS.
     40 	 */
     41 class NoErrorContextTest : public tcu::TestCase
     42 {
     43 public:
     44 	/* Public methods */
     45 	NoErrorContextTest(tcu::TestContext& testCtx, glu::ApiType apiType);
     46 
     47 	void						 deinit(void);
     48 	void						 init(void);
     49 	tcu::TestNode::IterateResult iterate(void);
     50 
     51 private:
     52 	/* Private methods */
     53 	bool verifyNoErrorContext(void);
     54 	/* Private members */
     55 	glu::ApiType m_ApiType;
     56 };
     57 
     58 /** Test group which encapsulates all sparse buffer conformance tests */
     59 class NoErrorTests : public tcu::TestCaseGroup
     60 {
     61 public:
     62 	/* Public methods */
     63 	NoErrorTests(tcu::TestContext& testCtx, glu::ApiType apiType);
     64 
     65 	void init(void);
     66 
     67 private:
     68 	NoErrorTests(const NoErrorTests& other);
     69 	NoErrorTests& operator=(const NoErrorTests& other);
     70 
     71 	/* Private members */
     72 	glu::ApiType m_ApiType;
     73 };
     74 } /* glcts namespace */
     75 
     76 #endif // _GLCNOERRORTESTS_HPP
     77