xref: /haiku/src/tests/servers/app/benchmark/StringTest.h (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2  * Copyright (C) 2008-2009 Stephan Aßmus <superstippi@gmx.de>
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef STRING_TEST_H
6 #define STRING_TEST_H
7 
8 #include <Rect.h>
9 
10 #include "Test.h"
11 
12 class StringTest : public Test {
13 public:
14 								StringTest();
15 	virtual						~StringTest();
16 
17 	virtual	void				Prepare(BView* view);
18 	virtual	bool				RunIteration(BView* view);
19 	virtual	void				PrintResults(BView* view);
20 
21 	static	Test*				CreateTest();
22 
23 private:
24 	bigtime_t					fTestDuration;
25 	bigtime_t					fTestStart;
26 	uint64						fGlyphsRendered;
27 	uint32						fGlyphsPerLine;
28 	uint32						fIterations;
29 	uint32						fMaxIterations;
30 
31 	float						fStartHeight;
32 	float						fLineHeight;
33 	BRect						fViewBounds;
34 };
35 
36 #endif // STRING_TEST_H
37