xref: /haiku/src/tests/kits/app/bclipboard/ReadWriteTester.h (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 //------------------------------------------------------------------------------
2 //	ReadWriteTester.h
3 //
4 //------------------------------------------------------------------------------
5 
6 #ifndef READ_WRITE_TESTER_H
7 #define READ_WRITE_TESTER_H
8 
9 // Standard Includes -----------------------------------------------------------
10 
11 // System Includes -------------------------------------------------------------
12 #include <Handler.h>
13 
14 // Project Includes ------------------------------------------------------------
15 
16 // Local Includes --------------------------------------------------------------
17 #include "../common.h"
18 
19 // Local Defines ---------------------------------------------------------------
20 
21 // Globals ---------------------------------------------------------------------
22 
23 class ReadWriteTester : public TestCase
24 {
25 	public:
26 		ReadWriteTester() {;}
27 		ReadWriteTester(std::string name) : TestCase(name) {;}
28 
29 		void Clear1();
30 		void Clear2();
31 		void Revert1();
32 		void Revert2();
33 		void Commit1();
34 		void Commit2();
35 		void Data1();
36 		void Data2();
37 		void DataSource1();
38 		void DataSource2();
39 		void DataSource3();
40 		void StartWatching1();
41 		void StopWatching1();
42 		void StopWatching2();
43 
44 		static Test* Suite();
45 };
46 
47 class RWHandler : public BHandler {
48 public:
49 	RWHandler();
50 
51 	virtual void MessageReceived(BMessage *message);
52 	bool ClipboardModified();
53 private:
54 	bool fClipboardModified;
55 };
56 
57 #endif	// READ_WRITE_TESTER_H
58 
59