You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.6 KiB

#ifndef _TES31TESTCASE_HPP
#define _TES31TESTCASE_HPP
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*//*!
* \file
* \brief OpenGL ES 3.1 test case.
*//*--------------------------------------------------------------------*/
#include "tcuDefs.hpp"
#include "tcuTestCase.hpp"
#include "tes31Context.hpp"
namespace deqp
{
namespace gles31
{
class TestCaseGroup : public tcu::TestCaseGroup
{
public:
TestCaseGroup (Context& context, const char* name, const char* description);
TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<TestNode*>& children);
virtual ~TestCaseGroup (void) {}
Context& getContext (void) { return m_context; }
protected:
Context& m_context;
};
class TestCase : public tcu::TestCase
{
public:
TestCase (Context& context, const char* name, const char* description);
TestCase (Context& context, tcu::TestNodeType nodeType, const char* name, const char* description);
virtual ~TestCase (void) {}
protected:
Context& m_context;
};
inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description)
: tcu::TestCaseGroup (context.getTestContext(), name, description)
, m_context (context)
{
}
inline TestCaseGroup::TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<TestNode*>& children)
: tcu::TestCaseGroup (context.getTestContext(), name, description, children)
, m_context (context)
{
}
inline TestCase::TestCase (Context& context, const char* name, const char* description)
: tcu::TestCase (context.getTestContext(), name, description)
, m_context (context)
{
}
inline TestCase::TestCase (Context& context, tcu::TestNodeType nodeType, const char* name, const char* description)
: tcu::TestCase (context.getTestContext(), nodeType, name, description)
, m_context (context)
{
}
} // gles31
} // deqp
#endif // _TES31TESTCASE_HPP