telephonyserverplugins/common_tsy/test/component/src/cctsyenstorefu.cpp
changeset 19 1f776524b15c
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
--- a/telephonyserverplugins/common_tsy/test/component/src/cctsyenstorefu.cpp	Tue Feb 02 01:41:59 2010 +0200
+++ b/telephonyserverplugins/common_tsy/test/component/src/cctsyenstorefu.cpp	Fri Mar 19 09:55:57 2010 +0200
@@ -351,6 +351,7 @@
 	ASSERT_EQUALS(KErrNone, ret);
 	CleanupClosePushL(enStore);
  	
+	// Test 1: Bad index
     const TInt KIndex(0);   //bad index
 	TRequestStatus requestStatus;
     RMobileENStore::TMobileENEntryV1 info;    
@@ -363,6 +364,15 @@
     User::WaitForRequest(requestStatus);        
 	ASSERT_EQUALS(KErrArgument, requestStatus.Int());
 	
+	// Test 2: Bad package size
+    RMobileNamStore::TMobileNamEntryV1 info2;    
+    RMobileNamStore::TMobileNamEntryV1Pckg infoPckg2(info2);
+
+    enStore.Read(requestStatus, infoPckg2);
+        
+    User::WaitForRequest(requestStatus);        
+    ASSERT_EQUALS(KErrArgument, requestStatus.Int());
+    
 	AssertMockLtsyStatusL();
 	CleanupStack::PopAndDestroy(2, this); // enStore, this
 	}