xref: /haiku/src/tests/kits/interface/layout/widget_layout_test/Test.cpp (revision 4b5501d29dca8c24507a125b2d3b7350e1cb727d)
1 /*
2  * Copyright 2007, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 
6 #include "Test.h"
7 
8 
Test(const char * name,const char * description,BView * view)9 Test::Test(const char* name, const char* description, BView* view)
10 	: fName(name),
11 	  fDescription(description),
12 	  fView(view)
13 {
14 }
15 
16 
~Test()17 Test::~Test()
18 {
19 }
20 
21 
22 const char*
Name() const23 Test::Name() const
24 {
25 	return fName.String();
26 }
27 
28 
29 const char*
Description() const30 Test::Description() const
31 {
32 	return fDescription.String();
33 }
34 
35 
36 BView*
GetView() const37 Test::GetView() const
38 {
39 	return fView;
40 }
41 
42 
43 void
SetView(BView * view)44 Test::SetView(BView* view)
45 {
46 	fView = view;
47 }
48 
49 
50 void
ActivateTest(View * controls)51 Test::ActivateTest(View* controls)
52 {
53 }
54 
55 
56 void
DectivateTest()57 Test::DectivateTest()
58 {
59 }
60