searcher/tsrc/cpixsearchertest/inc/cpixsearchertester.h
changeset 1 6f2c1c46032b
parent 0 671dee74050a
child 14 8bd192d47aaa
equal deleted inserted replaced
0:671dee74050a 1:6f2c1c46032b
    34                       public MAOTestObserver,
    34                       public MAOTestObserver,
    35                       public MCPixSetAnalyzerRequestObserver
    35                       public MCPixSetAnalyzerRequestObserver
    36 {   
    36 {   
    37 public:
    37 public:
    38     CTestSearcher(){}
    38     CTestSearcher(){}
    39     void setUp();
    39     void initialsetUp();
       
    40     void createandinitindexer();
       
    41     void createsearcher();
       
    42     void harvesttestcontent( TInt aCount );
       
    43     void InitAsyncComponents();
    40     void tearDown();
    44     void tearDown();
       
    45     void ReleaseIndexer();
       
    46     void ReleaseSearcher();
       
    47     void ReleaseAsyncComponents();
    41 private:    
    48 private:    
    42 
    49 
    43     TInt SearchForTextL(const TDesC& aText, const TDesC& aDefaultField);
    50     TInt SearchForTextL(const TDesC& aText, const TDesC& aDefaultField);
    44     void AddFileToIndexL(const TDesC& aFileName);
    51     void AddFileToIndexL(const TDesC& aFileName);
    45 
    52 
    60 public:
    67 public:
    61     /*
    68     /*
    62      * Basic search tests - requires IndexDb with Shakespeare corpus data 
    69      * Basic search tests - requires IndexDb with Shakespeare corpus data 
    63      * already indexed.
    70      * already indexed.
    64      */
    71      */
    65     TInt testKnownTermTestsL();
    72     void testKnownTermTestsL();
    66     /*
    73     /*
    67      * Simple tests for wildcard searches
    74      * Simple tests for wildcard searches
    68      */
    75      */
    69     void testWildcardTermTests();
    76     void testWildcardTermTests();
    70     /*
    77     /*
   105      *  Test that if an invalid document is requested that the HandleDocumentL
   112      *  Test that if an invalid document is requested that the HandleDocumentL
   106      *  observer function will be called. This is important for completing the
   113      *  observer function will be called. This is important for completing the
   107      *  search statemachine.
   114      *  search statemachine.
   108      */
   115      */
   109     void testGetInvalidDocumentAsync();
   116     void testGetInvalidDocumentAsync();
       
   117     
       
   118     TInt testEcerptLenth();
   110 private:
   119 private:
   111     CCPixSearcher* iSearcher;
   120     CCPixSearcher* iSearcher;
   112     RSearchServerSession iSession;
   121     RSearchServerSession iSession;
   113     RFs iFs;
   122     RFs iFs;
   114     RFile iFile;
   123     RFile iFile;