• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include <climits>
17 #include <gtest/gtest.h>
18 #include <ctime>
19 #include "Deqpgles31BaseFunc.h"
20 #include "ActsDeqpgles310001TestSuite.h"
21 
22 namespace OHOS {
23     using namespace std;
24     using namespace testing::ext;
25 
26     time_t ActsDeqpgles310001TestSuite::startTime;
27     time_t ActsDeqpgles310001TestSuite::endTime;
28     FuncRunResult ActsDeqpgles310001TestSuite::runResult;
29 
30     // Preset action of the test suite, which is executed before the first test case
SetUpTestCase(void)31     void ActsDeqpgles310001TestSuite::SetUpTestCase(void)
32     {
33         time(&startTime);
34         RegistPackage();
35         runResult.numPassed = 0;
36         runResult.numFailed = 0;
37         runResult.numNotSupported = 0;
38         runResult.numWarnings = 0;
39         runResult.numWaived = 0;
40     }
41     // Test suite cleanup action, which is executed after the last test case
TearDownTestCase(void)42     void ActsDeqpgles310001TestSuite::TearDownTestCase(void)
43     {
44         time(&endTime);
45         printf("Test run totals --- Passed[%d]\n", runResult.numPassed);
46         printf("Test run totals --- Failed[%d]\n", runResult.numFailed);
47         printf("Test run totals --- Notsupport[%d]\n", runResult.numNotSupported);
48         printf("Test run totals --- Warnings[%d]\n", runResult.numWarnings);
49         printf("Test run totals --- Waved[%d]\n", runResult.numWaived);
50         cout << "testmain end --- COST TIME ["<< (endTime-startTime) << "]" << std::endl;;
51     }
52     // Preset action of the test case
SetUp(void)53     void ActsDeqpgles310001TestSuite::SetUp(void)
54     {
55     }
56     // Cleanup action of the test case
TearDown(void)57     void ActsDeqpgles310001TestSuite::TearDown(void)
58     {
59     }
60 }