smsprotocols/smsstack/test/smsstacktestutilities.cpp
changeset 44 8b72faa1200f
parent 20 244d7c5f118e
child 53 12b52b1a573e
equal deleted inserted replaced
39:2473f5e227f9 44:8b72faa1200f
     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     LogSmsIfPDU(_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)