2002-07-09 16:24:59 +04:00
|
|
|
// 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 TestApp;
|
|
|
|
|
|
|
|
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:
|
|
|
|
TestApp *fApplication;
|
|
|
|
bool fVolumeCreated;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __sk_query_test_h__
|
2002-07-18 05:03:19 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|