searcher/tsrc/cpixsearchertest/src/cpixsearchertestBlocks.cpp
changeset 15 cf5c74390b98
parent 1 6f2c1c46032b
equal deleted inserted replaced
10:afe194b6b1cd 15:cf5c74390b98
   162         ENTRY( "TestOpenIndexDb", Ccpixsearchertest::TestOpenIndexDbL),
   162         ENTRY( "TestOpenIndexDb", Ccpixsearchertest::TestOpenIndexDbL),
   163         ENTRY( "TestDeleteIndexDbWhileSearching", Ccpixsearchertest::TestDeleteIndexDbWhileSearchingL),
   163         ENTRY( "TestDeleteIndexDbWhileSearching", Ccpixsearchertest::TestDeleteIndexDbWhileSearchingL),
   164         ENTRY( "TestGetDocumentAsync", Ccpixsearchertest::TestGetDocumentAsyncL),
   164         ENTRY( "TestGetDocumentAsync", Ccpixsearchertest::TestGetDocumentAsyncL),
   165         ENTRY( "TestGetInvalidDocumentAsync", Ccpixsearchertest::TestGetInvalidDocumentAsyncL),
   165         ENTRY( "TestGetInvalidDocumentAsync", Ccpixsearchertest::TestGetInvalidDocumentAsyncL),
   166         ENTRY( "TestExerptLength", Ccpixsearchertest::TestExerptLengthL),
   166         ENTRY( "TestExerptLength", Ccpixsearchertest::TestExerptLengthL),
       
   167         ENTRY( "TestGetBatchdoc", Ccpixsearchertest::TestGetBatchdocL),
       
   168         ENTRY( "TestAsyncGetBatchdoc", Ccpixsearchertest::TestAsyncGetBatchdocL),
   167         
   169         
   168         //ADD NEW ENTRY HERE
   170         //ADD NEW ENTRY HERE
   169         // [test cases entries] - Do not remove
   171         // [test cases entries] - Do not remove
   170 
   172 
   171         };
   173         };
   980     testsearcher->ReleaseIndexer();
   982     testsearcher->ReleaseIndexer();
   981     testsearcher->tearDown();
   983     testsearcher->tearDown();
   982     doLog( iLog, err, KTestFormBaseAppClassNoError );
   984     doLog( iLog, err, KTestFormBaseAppClassNoError );
   983         return err;
   985         return err;
   984     }
   986     }
       
   987 
       
   988 // -----------------------------------------------------------------------------
       
   989 // Ccpixsearchertest::TestGetBatchdocL
       
   990 // -----------------------------------------------------------------------------
       
   991 //
       
   992 TInt Ccpixsearchertest::TestGetBatchdocL( CStifItemParser& /*aItem*/ )
       
   993     {
       
   994     _LIT( KTestFormBaseAppClassNoError, "TestGetBatchdocL: No Error" ); 
       
   995     CTestSearcher* testsearcher = new CTestSearcher();
       
   996     testsearcher->initialsetUp();
       
   997     testsearcher->createandinitindexer();
       
   998     testsearcher->createsearcher();
       
   999     testsearcher->harvesttestcontent( 10 );
       
  1000     TRAPD ( err , testsearcher->testgetbatchdoc() );    
       
  1001     testsearcher->ReleaseIndexer();
       
  1002     testsearcher->ReleaseSearcher();
       
  1003     testsearcher->tearDown();
       
  1004     delete testsearcher;
       
  1005     doLog( iLog, err, KTestFormBaseAppClassNoError );
       
  1006     return err;
       
  1007     }
       
  1008 // -----------------------------------------------------------------------------
       
  1009 // Ccpixsearchertest::TestAsyncGetBatchdocL
       
  1010 // -----------------------------------------------------------------------------
       
  1011 //
       
  1012 TInt Ccpixsearchertest::TestAsyncGetBatchdocL( CStifItemParser& /*aItem*/ )
       
  1013     {
       
  1014     _LIT( KTestFormBaseAppClassNoError, "TestAsyncGetBatchdocL: No Error" ); 
       
  1015      CTestSearcher* testsearcher = new CTestSearcher();
       
  1016      testsearcher->initialsetUp();
       
  1017      testsearcher->createandinitindexer();
       
  1018      testsearcher->createsearcher();
       
  1019      testsearcher->harvesttestcontent( 10 );
       
  1020      testsearcher->InitAsyncComponents();
       
  1021      TRAPD ( err , testsearcher->testasyncgetbatchdoc() );    
       
  1022      testsearcher->ReleaseIndexer();
       
  1023      testsearcher->ReleaseSearcher();
       
  1024      testsearcher->ReleaseAsyncComponents();
       
  1025      testsearcher->tearDown();
       
  1026      delete testsearcher;
       
  1027      doLog( iLog, err, KTestFormBaseAppClassNoError );
       
  1028      return err;
       
  1029     }
   985 // -----------------------------------------------------------------------------
  1030 // -----------------------------------------------------------------------------
   986 // Ccpixsearchertest::?member_function
  1031 // Ccpixsearchertest::?member_function
   987 // ?implementation_description
  1032 // ?implementation_description
   988 // (other items were commented in a header).
  1033 // (other items were commented in a header).
   989 // -----------------------------------------------------------------------------
  1034 // -----------------------------------------------------------------------------