equal
deleted
inserted
replaced
|
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 } |