smsprotocols/smsstack/test/smsstacktestutilities.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 14 7ef16719d8cb
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    16 //
    16 //
    17 
    17 
    18 /**
    18 /**
    19  @file
    19  @file
    20 */
    20 */
       
    21 
       
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "smsstacktestutilitiesTraces.h"
       
    26 #endif
    21 
    27 
    22 #include "smsstacktestutilities.h"
    28 #include "smsstacktestutilities.h"
    23 
    29 
    24 #include <commsdattypesv1_1.h>
    30 #include <commsdattypesv1_1.h>
    25 #include <commsdattypesv1_1_internal.h>
    31 #include <commsdattypesv1_1_internal.h>
  1495 EXPORT_C void CSmsStackTestUtils::PrintAndTestDecodeL(const TGsmSms& aPdu, TSmsDataCodingScheme aExpectedDCS, TSmsProtocolIdentifier aExpectedPID, const CSmsUserData& aExpectedUD, TBool aIsMobileTerminated, TInt aExpectedError)
  1501 EXPORT_C void CSmsStackTestUtils::PrintAndTestDecodeL(const TGsmSms& aPdu, TSmsDataCodingScheme aExpectedDCS, TSmsProtocolIdentifier aExpectedPID, const CSmsUserData& aExpectedUD, TBool aIsMobileTerminated, TInt aExpectedError)
  1496 /**
  1502 /**
  1497  *  TODO
  1503  *  TODO
  1498  */
  1504  */
  1499 	{
  1505 	{
  1500 	LOGSMSIFPDU(_L8("TestPduDbToolsL PDU: "), aPdu.Pdu(), EFalse);
  1506 #if (OST_TRACE_CATEGORY & OST_TRACE_CATEGORY_DEBUG) 
  1501 	LOGSMSIFTIMESTAMP();
  1507     LogSmsIfPDUL(_L8("TestPduDbToolsL PDU: "), aPdu.Pdu(), EFalse);
       
  1508     TBuf<40> timestamp;
       
  1509     SmsTimeStampL(timestamp);
       
  1510     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS,CSMSSTACKTESTUTILS_PRINTANDTESTDECODEL_1, "%S",timestamp);
       
  1511 #endif
  1502 
  1512 
  1503 	CSmsPDU* pdu = NULL;
  1513 	CSmsPDU* pdu = NULL;
  1504 	TRAPD(err, pdu = CSmsPDU::NewL(aPdu, *iCharConv, iFs, aIsMobileTerminated));
  1514 	TRAPD(err, pdu = CSmsPDU::NewL(aPdu, *iCharConv, iFs, aIsMobileTerminated));
  1505 
  1515 
  1506 	if (err == KErrNone)
  1516 	if (err == KErrNone)