1*35238bceSAndroid Build Coastguard Worker #ifndef _TES2TESTCASE_HPP
2*35238bceSAndroid Build Coastguard Worker #define _TES2TESTCASE_HPP
3*35238bceSAndroid Build Coastguard Worker /*-------------------------------------------------------------------------
4*35238bceSAndroid Build Coastguard Worker * drawElements Quality Program OpenGL ES 2.0 Module
5*35238bceSAndroid Build Coastguard Worker * -------------------------------------------------
6*35238bceSAndroid Build Coastguard Worker *
7*35238bceSAndroid Build Coastguard Worker * Copyright 2014 The Android Open Source Project
8*35238bceSAndroid Build Coastguard Worker *
9*35238bceSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
10*35238bceSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
11*35238bceSAndroid Build Coastguard Worker * You may obtain a copy of the License at
12*35238bceSAndroid Build Coastguard Worker *
13*35238bceSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0
14*35238bceSAndroid Build Coastguard Worker *
15*35238bceSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
16*35238bceSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
17*35238bceSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18*35238bceSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
19*35238bceSAndroid Build Coastguard Worker * limitations under the License.
20*35238bceSAndroid Build Coastguard Worker *
21*35238bceSAndroid Build Coastguard Worker *//*!
22*35238bceSAndroid Build Coastguard Worker * \file
23*35238bceSAndroid Build Coastguard Worker * \brief OpenGL ES 2.0 test case.
24*35238bceSAndroid Build Coastguard Worker *//*--------------------------------------------------------------------*/
25*35238bceSAndroid Build Coastguard Worker
26*35238bceSAndroid Build Coastguard Worker #include "tcuDefs.hpp"
27*35238bceSAndroid Build Coastguard Worker #include "tcuTestCase.hpp"
28*35238bceSAndroid Build Coastguard Worker #include "tes2Context.hpp"
29*35238bceSAndroid Build Coastguard Worker
30*35238bceSAndroid Build Coastguard Worker namespace deqp
31*35238bceSAndroid Build Coastguard Worker {
32*35238bceSAndroid Build Coastguard Worker namespace gles2
33*35238bceSAndroid Build Coastguard Worker {
34*35238bceSAndroid Build Coastguard Worker
35*35238bceSAndroid Build Coastguard Worker class TestCaseGroup : public tcu::TestCaseGroup
36*35238bceSAndroid Build Coastguard Worker {
37*35238bceSAndroid Build Coastguard Worker public:
38*35238bceSAndroid Build Coastguard Worker TestCaseGroup(Context &context, const char *name, const char *description);
39*35238bceSAndroid Build Coastguard Worker TestCaseGroup(Context &context, const char *name, const char *description, const std::vector<TestNode *> &children);
~TestCaseGroup(void)40*35238bceSAndroid Build Coastguard Worker virtual ~TestCaseGroup(void)
41*35238bceSAndroid Build Coastguard Worker {
42*35238bceSAndroid Build Coastguard Worker }
43*35238bceSAndroid Build Coastguard Worker
getContext(void)44*35238bceSAndroid Build Coastguard Worker Context &getContext(void)
45*35238bceSAndroid Build Coastguard Worker {
46*35238bceSAndroid Build Coastguard Worker return m_context;
47*35238bceSAndroid Build Coastguard Worker }
48*35238bceSAndroid Build Coastguard Worker
49*35238bceSAndroid Build Coastguard Worker protected:
50*35238bceSAndroid Build Coastguard Worker Context &m_context;
51*35238bceSAndroid Build Coastguard Worker };
52*35238bceSAndroid Build Coastguard Worker
53*35238bceSAndroid Build Coastguard Worker class TestCase : public tcu::TestCase
54*35238bceSAndroid Build Coastguard Worker {
55*35238bceSAndroid Build Coastguard Worker public:
56*35238bceSAndroid Build Coastguard Worker TestCase(Context &context, const char *name, const char *description);
57*35238bceSAndroid Build Coastguard Worker TestCase(Context &context, tcu::TestNodeType type, const char *name, const char *description);
~TestCase(void)58*35238bceSAndroid Build Coastguard Worker virtual ~TestCase(void)
59*35238bceSAndroid Build Coastguard Worker {
60*35238bceSAndroid Build Coastguard Worker }
61*35238bceSAndroid Build Coastguard Worker
62*35238bceSAndroid Build Coastguard Worker protected:
63*35238bceSAndroid Build Coastguard Worker Context &m_context;
64*35238bceSAndroid Build Coastguard Worker };
65*35238bceSAndroid Build Coastguard Worker
TestCaseGroup(Context & context,const char * name,const char * description)66*35238bceSAndroid Build Coastguard Worker inline TestCaseGroup::TestCaseGroup(Context &context, const char *name, const char *description)
67*35238bceSAndroid Build Coastguard Worker : tcu::TestCaseGroup(context.getTestContext(), name, description)
68*35238bceSAndroid Build Coastguard Worker , m_context(context)
69*35238bceSAndroid Build Coastguard Worker {
70*35238bceSAndroid Build Coastguard Worker }
71*35238bceSAndroid Build Coastguard Worker
TestCaseGroup(Context & context,const char * name,const char * description,const std::vector<TestNode * > & children)72*35238bceSAndroid Build Coastguard Worker inline TestCaseGroup::TestCaseGroup(Context &context, const char *name, const char *description,
73*35238bceSAndroid Build Coastguard Worker const std::vector<TestNode *> &children)
74*35238bceSAndroid Build Coastguard Worker : tcu::TestCaseGroup(context.getTestContext(), name, description, children)
75*35238bceSAndroid Build Coastguard Worker , m_context(context)
76*35238bceSAndroid Build Coastguard Worker {
77*35238bceSAndroid Build Coastguard Worker }
78*35238bceSAndroid Build Coastguard Worker
TestCase(Context & context,const char * name,const char * description)79*35238bceSAndroid Build Coastguard Worker inline TestCase::TestCase(Context &context, const char *name, const char *description)
80*35238bceSAndroid Build Coastguard Worker : tcu::TestCase(context.getTestContext(), name, description)
81*35238bceSAndroid Build Coastguard Worker , m_context(context)
82*35238bceSAndroid Build Coastguard Worker {
83*35238bceSAndroid Build Coastguard Worker }
84*35238bceSAndroid Build Coastguard Worker
TestCase(Context & context,tcu::TestNodeType type,const char * name,const char * description)85*35238bceSAndroid Build Coastguard Worker inline TestCase::TestCase(Context &context, tcu::TestNodeType type, const char *name, const char *description)
86*35238bceSAndroid Build Coastguard Worker : tcu::TestCase(context.getTestContext(), type, name, description)
87*35238bceSAndroid Build Coastguard Worker , m_context(context)
88*35238bceSAndroid Build Coastguard Worker {
89*35238bceSAndroid Build Coastguard Worker }
90*35238bceSAndroid Build Coastguard Worker
91*35238bceSAndroid Build Coastguard Worker } // namespace gles2
92*35238bceSAndroid Build Coastguard Worker } // namespace deqp
93*35238bceSAndroid Build Coastguard Worker
94*35238bceSAndroid Build Coastguard Worker #endif // _TES2TESTCASE_HPP
95