24
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// functional unit of the Common TSY Dispatcher.
|
|
15 |
//
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file The TEFUnit header file which tests the PhonebookOn
|
|
21 |
*/
|
|
22 |
|
|
23 |
/**
|
|
24 |
@file
|
|
25 |
@internalAll
|
|
26 |
*/
|
|
27 |
|
|
28 |
#ifndef CCTSYPHONEBOOKONFU_H
|
|
29 |
#define CCTSYPHONEBOOKONFU_H
|
|
30 |
|
|
31 |
#include <test/tefunit.h>
|
|
32 |
#include <etelmm.h>
|
|
33 |
#include <etelmmcs.h>
|
|
34 |
#include "cctsyphonebookfu.h"
|
|
35 |
|
|
36 |
_LIT(KText, "Number%d");
|
|
37 |
_LIT(KNumber, "0000000%d");
|
|
38 |
_LIT(KText1, "Number1");
|
|
39 |
_LIT(KNumber1, "11111111");
|
|
40 |
|
|
41 |
class CCTsyPhonebookOnFU : public CCTsyPhonebookFU
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
// Create a suite of all the tests
|
|
45 |
static CTestSuite* CreateSuiteL(const TDesC& aName);
|
|
46 |
|
|
47 |
public:
|
|
48 |
// use-case tests
|
|
49 |
void TestUseCase0001L();
|
|
50 |
void TestUseCase0002L();
|
|
51 |
void TestUseCase0003L();
|
|
52 |
|
|
53 |
//other unit tests
|
|
54 |
void TestUnit0001L();
|
|
55 |
void TestUnit0002L();
|
|
56 |
void TestUnit0003L();
|
|
57 |
void TestUnit0004L();
|
|
58 |
void TestUnit0005L();
|
|
59 |
void TestUnit0006L();
|
|
60 |
void TestUnit0007L();
|
|
61 |
|
|
62 |
private:
|
|
63 |
|
|
64 |
void GenerateONList3L(CMobilePhoneONList* aONList);
|
|
65 |
void StoreAllL(RMobileONStore& aOnStore);
|
|
66 |
void ReadAllL(RMobileONStore& aOnStore);
|
|
67 |
|
|
68 |
}; // class CCTsyPhonebookOnFU
|
|
69 |
|
|
70 |
#endif // CCTSYPHONEBOOKONFU_H
|
|
71 |
|