vfs: check userland buffers before reading them.
[haiku.git] / src / tests / servers / app / harness / harness.h
blobc4901a38b66a5bcae890247585f8dc01b6954f0e
1 /*
2 * Copyright 2014 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
7 #include <List.h>
8 #include <String.h>
9 #include <View.h>
10 #include <Window.h>
13 class BMenuField;
14 class TestView;
17 class Test {
18 public:
19 Test(const char* name);
20 virtual ~Test();
22 const char* Name() const
23 { return fName.String(); }
25 virtual void Draw(BView* view, BRect updateRect) = 0;
27 private:
28 BString fName;
32 class TestWindow : public BWindow {
33 public:
34 TestWindow(const char* title);
35 virtual ~TestWindow();
37 virtual void MessageReceived(BMessage* message);
39 void AddTest(Test* test);
40 void SetToTest(int32 index);
42 private:
43 TestView* fTestView;
45 BMenuField* fTestSelectionField;
47 BList fTests;