24
|
1 |
// Te_etelpckt_defs.h
|
|
2 |
|
|
3 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
// All rights reserved.
|
|
5 |
// This component and the accompanying materials are made available
|
|
6 |
// under the terms of "Eclipse Public License v1.0"
|
|
7 |
// which accompanies this distribution, and is available
|
|
8 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
9 |
//
|
|
10 |
// Initial Contributors:
|
|
11 |
// Nokia Corporation - initial contribution.
|
|
12 |
//
|
|
13 |
// Contributors:
|
|
14 |
//
|
|
15 |
// Description:
|
|
16 |
// This file contains the macro and helper definitions that are used in the
|
|
17 |
// Packet data suite test steps.
|
|
18 |
//
|
|
19 |
//
|
|
20 |
|
|
21 |
/**
|
|
22 |
@file
|
|
23 |
@internalComponent
|
|
24 |
*/
|
|
25 |
|
|
26 |
#ifndef __TE_ETELPCKT_DEFS_H__
|
|
27 |
#define __TE_ETELPCKT_DEFS_H__
|
|
28 |
|
|
29 |
|
|
30 |
// Macros to be used in Test Steps
|
|
31 |
#define CHP_TEL_CONNECT _L("Failed connect phone")
|
|
32 |
#define CHP_OPEN_PHONE _L("Failed open phone")
|
|
33 |
|
|
34 |
#define CHECKPOINT(code,expected,msg){\
|
|
35 |
TEST((code)==(expected));\
|
|
36 |
if (code != expected ) INFO_PRINTF1(msg);\
|
|
37 |
}
|
|
38 |
|
|
39 |
#define CHECKPOINT_EX(boolexpr,msg) {\
|
|
40 |
TEST((boolexpr));\
|
|
41 |
if (EFalse == (boolexpr)) INFO_PRINTF1(msg);\
|
|
42 |
}
|
|
43 |
|
|
44 |
#define CHECKPOINT_COMP_STR(value,expected,msg) CHECKPOINT_EX((value)==(expected),msg)
|
|
45 |
|
|
46 |
// Helpers to get the referencies to the specification
|
|
47 |
#if defined(_UNICODE)
|
|
48 |
#define CHP_SRVS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
|
|
49 |
#define CHP_CNTXT_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
|
|
50 |
#define CHP_QOS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
|
|
51 |
#else
|
|
52 |
#define CHP_SRVS_CASE(the_case) (TPtrC((const TText *)("Case: " the_case)))
|
|
53 |
#define CHP_CNTXT_CASE(the_case) (TPtrC((const TText *)("Case: " the_case)))
|
|
54 |
#define CHP_QOS_CASE(the_case) (TPtrC((const TText *)("Case: " the_case)))
|
|
55 |
#endif
|
|
56 |
|
|
57 |
|
|
58 |
#endif //__TE_ETELPCKT_DEFS_H__
|