telutils/dialpad/tsrc/unit/shared/mock_cenrep.cpp
branchRCL_3
changeset 19 7d48bed6ce0c
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
       
     1 #include <QtTest/QtTest>
       
     2 #include <mock_centralrepository.h>
       
     3 
       
     4 // TODO: Add a new class named Ut_Utility to config all CR key
       
     5 // to simulate 3 different images
       
     6 CRepository* CRepository::NewL(TUid /*aRepositoryUid*/)
       
     7 {
       
     8     CRepository *self = new (ELeave) CRepository();
       
     9     return self;
       
    10 }
       
    11 
       
    12 CRepository::~CRepository()
       
    13 {    
       
    14 }
       
    15 
       
    16 TInt CRepository::Get(TUint32 aKey, TInt& aValue)
       
    17 {
       
    18     aValue = mValue;
       
    19     return KErrNone;
       
    20 }
       
    21 TInt CRepository::Set(TUint32 /*aKey*/, TInt aValue)
       
    22 {
       
    23     mValue = aValue;
       
    24     return KErrNone;
       
    25 }
       
    26 
       
    27 TInt CRepository::Get(TUint32 /*aKey*/, TDes16& aValue)
       
    28 {
       
    29     return KErrNone;
       
    30 }
       
    31 
       
    32 TInt CRepository::Set(TUint32 /*aKey*/, const TDesC16& /*aValue*/)
       
    33 {
       
    34     return KErrNone;
       
    35 }