telephonyserverplugins/ctsydispatchlayer/test/dispatchertests/dispatchsrc/cctsyphonebookonfunegative.cpp
equal
deleted
inserted
replaced
42 |
42 |
43 END_SUITE; |
43 END_SUITE; |
44 } |
44 } |
45 |
45 |
46 /** |
46 /** |
|
47 * Cleanup |
|
48 */ |
|
49 void CCTsyPhonebookOnFUNegative::DoCleanup() |
|
50 { |
|
51 iAdnPhoneBookStore.Close(); |
|
52 CCTsyPhonebookFU::DoCleanup(); |
|
53 } |
|
54 |
|
55 /** |
47 * Wraps up boilerplate code for starting tests with a clean RPhone session and RMobileONStore |
56 * Wraps up boilerplate code for starting tests with a clean RPhone session and RMobileONStore |
48 * initialised. On return this and aONStore have been pushed to the CleanupStack |
57 * initialised. On return this and aONStore have been pushed to the CleanupStack |
49 */ |
58 */ |
50 void CCTsyPhonebookOnFUNegative::OpenAndPushEtelAndPhoneONStoreL(RMobileONStore& aONStore) |
59 void CCTsyPhonebookOnFUNegative::OpenAndPushEtelAndPhoneONStoreL(RMobileONStore& aONStore) |
51 { |
60 { |
52 OpenEtelServerL(EUseExtendedError); |
61 OpenEtelServerL(EUseExtendedError); |
53 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
62 CleanupStack::PushL(TCleanupItem(Cleanup,this)); |
54 OpenPhoneL(); |
63 OpenPhoneL(); |
|
64 |
|
65 OpenCachingPhoneBookL(DispatcherPhonebook::EIccAdn,iAdnPhoneBookStore,KErrNone); |
55 |
66 |
56 TInt ret = aONStore.Open(iPhone); |
67 TInt ret = aONStore.Open(iPhone); |
57 ASSERT_EQUALS(ret, KErrNone); |
68 ASSERT_EQUALS(ret, KErrNone); |
58 CleanupClosePushL(aONStore); |
69 CleanupClosePushL(aONStore); |
59 } |
70 } |