ManaPlus
testlauncher.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2011-2018 The ManaPlus Developers
4  *
5  * This file is part of The ManaPlus Client.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef TEST_TESTLAUNCHER_H
22 #define TEST_TESTLAUNCHER_H
23 
24 #ifdef USE_OPENGL
25 
26 #include <fstream>
27 
28 #ifdef WIN32
29 #include <sys/time.h>
30 #endif // WIN32
31 
32 #ifdef __native_client__
33 #include <sys/time.h>
34 #endif // __native_client__
35 
36 #include "localconsts.h"
37 
39 {
40  public:
41  explicit TestLauncher(std::string test);
42 
44 
45  ~TestLauncher();
46 
47  int exec();
48 
49  int calcFps(const timeval &start,
50  const timeval &end,
51  const int calls) const;
52 
53  int testBackend() const;
54 
55  int testSound() const;
56 
57  int testRescale() const;
58 
59  int testFps();
60 
61  int testFps2();
62 
63  int testFps3();
64 
65  int testInternal();
66 
67  int testDye();
68 
69  int testVideoDetection();
70 
71  int testBatches();
72 
73  int testTextures();
74 
75  int testDraw();
76 
77  int testDyeSSpeed();
78 
79  int testDyeASpeed();
80 
81  int testStackSpeed();
82 
83  int testBlitSpeed();
84 
85  private:
86  std::string mTest;
87 
88  std::ofstream file;
89 };
90 
91 #endif // USE_OPENGL
92 #endif // TEST_TESTLAUNCHER_H
#define A_DELETE_COPY(func)
Definition: localconsts.h:52
int calcFps(const timeval &start, const timeval &end, const int calls) const
int testStackSpeed()
#define final
Definition: localconsts.h:45
TestLauncher(std::string test)
std::string mTest
Definition: testlauncher.h:86
int testSound() const
int testBatches()
int testVideoDetection()
std::ofstream file
Definition: testlauncher.h:88
int testBackend() const
int testInternal()
int testRescale() const