haiku/src/tests/kits/storage/QueryTest.h
Tyler Dauwalder 242a6db230 Changed TestApp to BTestApp for sake of consitency with
the rest of the test classes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-23 22:27:43 +00:00

53 lines
1.2 KiB
C++

// QueryTest.h
#ifndef __sk_query_test_h__
#define __sk_query_test_h__
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
#include <StorageDefs.h>
#include <SupportDefs.h>
#include "BasicTest.h"
class QueryTestEntry;
class BTestApp;
class QueryTest : public BasicTest
{
public:
static CppUnit::Test* Suite();
// This function is called before *each* test added in Suite()
void setUp();
// This function is called after *each* test added in Suite()
void tearDown();
//------------------------------------------------------------
// Test functions
//------------------------------------------------------------
void PredicateTest();
void ParameterTest();
void FetchTest();
void AddLiveEntries(QueryTestEntry **entries, int32 entryCount,
QueryTestEntry **queryEntries, int32 queryEntryCount);
void RemoveLiveEntries(QueryTestEntry **entries, int32 entryCount,
QueryTestEntry **queryEntries,
int32 queryEntryCount);
void CheckUpdateMessages(uint32 opcode, QueryTestEntry **entries,
int32 entryCount);
void LiveTest();
private:
BTestApp *fApplication;
bool fVolumeCreated;
};
#endif // __sk_query_test_h__