videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/mdeobject.cpp
branchRCL_3
changeset 26 67eb01668b0e
parent 23 8f0df5c82986
--- a/videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/mdeobject.cpp	Tue May 25 12:44:54 2010 +0300
+++ b/videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/mdeobject.cpp	Wed Jun 09 09:44:23 2010 +0300
@@ -23,6 +23,8 @@
 #include <mdenamespacedef.h>
 #include <mdesession.h>
 
+#include "VcxMyVideosMdsDbTest.h"
+
 //////////////////////////////
 //                          //
 //        TMdEObject        //
@@ -173,12 +175,19 @@
 
 EXPORT_C TInt CMdEObject::Property(const CMdEPropertyDef& aDef, CMdEProperty*& aProperty, TInt aStartAt) const
     {
+    if ( test->propertynotdefined )
+        {
+        return KErrNotFound;
+        }
     if( !iProperty )
         {
         iProperty = new CMdEProperty();
         }
     
-    aProperty = iProperty;
+    if ( test->propertyisnull )
+        {
+        aProperty = NULL;
+        }
     }
     
 EXPORT_C CMdEProperty& CMdEObject::AddBoolPropertyL(CMdEPropertyDef& aDef, TBool aValue)
@@ -296,6 +305,14 @@
 
 EXPORT_C TBool CMdEObject::OpenForModifications() const
 	{
+    if ( test->mdeobjectopenresult )
+        {
+        return EFalse;
+        }
+    else
+        {
+        return ETrue;
+        }
 	}
 
 void CMdEObject::ClearObject( TBool aClearFlags )