kerneltest/e32test/notifier/t_textnotifier.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
child 271 dc268b18d709
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
    81 	heapInfo2.Zero();
    81 	heapInfo2.Zero();
    82 	n.StartNotifierAndGetResponse(stat,aUid,KHeapData,heapInfo2);
    82 	n.StartNotifierAndGetResponse(stat,aUid,KHeapData,heapInfo2);
    83 	User::WaitForRequest(stat);
    83 	User::WaitForRequest(stat);
    84 	n.CancelNotifier(aUid);
    84 	n.CancelNotifier(aUid);
    85 	test(stat==heapCellCount);
    85 	test(stat==heapCellCount);
    86 	test(heapInfo1==heapInfo2);
    86 	
       
    87 	TInt size1, size2;
       
    88 	TLex8 lex(heapInfo1);
       
    89 	r = lex.Val(size1);
       
    90 	test(r==KErrNone);
       
    91 	lex.Assign(heapInfo2);
       
    92 	r = lex.Val(size2);
       
    93 	test(r==KErrNone);
       
    94 	//allocated size after should not be greater than before BUT may be less with new allocator
       
    95 	test(size2 <= size1); 
    87 
    96 
    88 	test.Next(_L("Close connection to notifier server"));
    97 	test.Next(_L("Close connection to notifier server"));
    89 	n.Close();
    98 	n.Close();
    90 
    99 
    91 	test.End();
   100 	test.End();