equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 /* |
2 // All rights reserved. |
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 // This component and the accompanying materials are made available |
3 * All rights reserved. |
4 // under the terms of "Eclipse Public License v1.0" |
4 * This component and the accompanying materials are made available |
5 // which accompanies this distribution, and is available |
5 * under the terms of "Eclipse Public License v1.0" |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 * which accompanies this distribution, and is available |
7 // |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 // Initial Contributors: |
8 * |
9 // Nokia Corporation - initial contribution. |
9 * Initial Contributors: |
10 // |
10 * Nokia Corporation - initial contribution. |
11 // Contributors: |
11 * |
12 // |
12 * Contributors: |
13 // Description: |
13 * |
14 // |
14 * Description: |
15 |
15 * |
16 // This harness reqires a writeable drive other than C: or Z:, e.g. an MMC drive |
16 */ |
|
17 |
17 |
18 |
18 #include <e32test.h> |
19 #include <e32test.h> |
19 #include "T_UTILS.H" |
20 #include "t_utils.h" |
20 #include "CContactDbEventQueue.h" |
21 #include "ccontactdbeventqueue.h" |
21 #include <coreappstest/testserver.h> |
22 #include <coreappstest/testserver.h> |
22 |
23 |
23 // Type definitions |
24 // Type definitions |
24 LOCAL_D RTest test(_L("T_ERROR")); |
25 LOCAL_D RTest test(_L("T_ERROR")); |
25 LOCAL_D RFs TheFs; |
26 LOCAL_D RFs TheFs; |
547 private: |
548 private: |
548 TContactItemId iGroupId1; |
549 TContactItemId iGroupId1; |
549 TContactItemId iGroupId2; |
550 TContactItemId iGroupId2; |
550 }; |
551 }; |
551 |
552 |
552 // |
553 /////////////////// |
553 |
554 |
554 class COomTest : public CBase |
555 class COomTest : public CBase |
555 { |
556 { |
556 public: |
557 public: |
557 COomTest(TDriveUnit aMmcDrive); |
558 COomTest(TDriveUnit aMmcDrive); |
604 { |
605 { |
605 CContactDatabase* db=CContactDatabase::ReplaceL(KDatabaseFileName); |
606 CContactDatabase* db=CContactDatabase::ReplaceL(KDatabaseFileName); |
606 delete db; |
607 delete db; |
607 } |
608 } |
608 |
609 |
609 // |
610 /////////////////////////////////////////////////////////////////// |
610 // |
611 // |
611 // COomFailBase |
612 // COomFailBase |
612 // |
613 // |
613 |
614 |
614 COomFailBase::COomFailBase(COomTest* aOomTest) : iOomTest(aOomTest), iCounter(0) |
615 COomFailBase::COomFailBase(COomTest* aOomTest) : iOomTest(aOomTest), iCounter(0) |
2307 test(oldDbCount==iDbs.ResourceCount()); |
2308 test(oldDbCount==iDbs.ResourceCount()); |
2308 __UHEAP_MARKEND; |
2309 __UHEAP_MARKEND; |
2309 return(ETrue); |
2310 return(ETrue); |
2310 } |
2311 } |
2311 |
2312 |
2312 // |
2313 ///////////////////////////////// |
2313 |
2314 |
2314 // Code for DrivesOfMediaTypeL() and MMCDriveL() adapted from T_Sec_CntDbase |
2315 // Code for DrivesOfMediaTypeL() and MMCDriveL() adapted from T_Sec_CntDbase |
2315 |
2316 |
2316 LOCAL_C TBool FirstDriveOfMediaTypeL(TMediaType aMedia, TInt& aDriveNumber) |
2317 LOCAL_C TBool FirstDriveOfMediaTypeL(TMediaType aMedia, TInt& aDriveNumber) |
2317 { |
2318 { |