1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/ctlfrm/TS_Codes.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,92 @@
1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +// Standard EPOC32 includes required by this header file
1.20 +#include <e32base.h>
1.21 +#include <e32std.h>
1.22 +
1.23 +
1.24 +#ifndef TS_CODES_H
1.25 +#define TS_CODES_H
1.26 +
1.27 +// These are Codes which are passed to and from functions via the Controller Framework.
1.28 +
1.29 +const TInt KGetAudioQuality = 1;
1.30 +const TInt KSetAudionQuality = 2;
1.31 +const TInt KDummyFunc1 = 3;
1.32 +const TInt KDummyFunc1Return = -4;
1.33 +const TInt KDummyFunc2 = 5;
1.34 +const TInt KDummyFunc2Return = -6;
1.35 +const TInt KLogFunction = 7;
1.36 +const TInt KFuncComplete = 0;
1.37 +const TInt KModeFunction = 8;
1.38 +
1.39 +const TInt KDescriptorSource = 9;
1.40 +const TInt KDescriptorSink = 10;
1.41 +#ifdef SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
1.42 +const TInt KTestSetSubtitleAvailable = 11;
1.43 +#endif //SYMBIAN_MULTIMEDIA_SUBTITLE_SUPPORT
1.44 +const TInt KFuncThreadStackSize=12;
1.45 +//-----------------------------//
1.46 +// Leave Codes (Failure Tests) //
1.47 +//-----------------------------//
1.48 +
1.49 +const TInt KOpenFailure = 201;
1.50 +const TInt KAddDataSourceFailure = 202;
1.51 +const TInt KAddDataSinkFailure = 203;
1.52 +const TInt KRemoveDataSourceFailure = 204;
1.53 +const TInt KRemoveDataSinkFailure = 205;
1.54 +const TInt KPrimeFailure = 206;
1.55 +const TInt KFailureCode1 = 210;
1.56 +const TInt KFailureCode2 = 211;
1.57 +
1.58 +//------------------------------//
1.59 +//
1.60 +
1.61 +enum TMMFTestCustomCommands
1.62 + {
1.63 + EMMFTestCustomCommandSetAudioQuality = 1,
1.64 + EMMFTestCustomCommandGetAudioQuality,
1.65 + EMMFTestCustomCommandGeneralSynchronous,
1.66 + EMMFTestCustomCommandGeneralSynchronousWithReturn,
1.67 + EMMFTestCustomCommandGeneralAsynchronous,
1.68 + EMMFTestCustomCommandGeneralAsynchronousWithReturn,
1.69 + EMMFTestCustomCommandRequestGeneralEvent,
1.70 + EMMFTestCustomCommandSimulateReloading,
1.71 + EMMFTestCustomCommandCheckUrl,
1.72 + EMMFTestCustomCommandCheckLongUrl,
1.73 + EMMFTestCustomCommandPanic
1.74 + };
1.75 +
1.76 +_LIT8(KFirstParameter,"first");
1.77 +_LIT8(KSecondParameter,"second");
1.78 +_LIT8(KReturnParameter,"third");
1.79 +
1.80 +//URL Test
1.81 +_LIT(KTestURL, "http://www.symbian.com/test.pav");
1.82 +_LIT(KTestLongURL, "http://www.symbian.com/stream/clip/urls/aaaaaaaaa50-aaaaaaa60-aaaaaaa70-aaaaaaa80-aaaaaaa90-aaaaaa99/aaaaaaa110-aaaaaa120-aaaaaa130-aaaaaa140-aaaaaa150-aaaaaa160-aaaaaa170-aaaaaa180-aaaaaa190-aaaaa199/aaaaaaa210-aaaaaa220-aaaaaa230-aaaaaa240-aaaaaa250-aaaaaa260-aaaaaa270-aaaaaa280-aaaaaa290-aaaaa299/aaaaaaa310-aaaaaa320-aaaaaa330-aaaaaa340-aaaaaa350-aaaaaa360-aaaaaa370-aaaaaa380-aaaaaa390-aaaaa399/aaaaaaa410-aaaaaa420-aaaaaa430-aaaaaa440-aaaaaa450-aaaaaa460-aaaaaa470-aaaaaa480-aaaaaa490-aaaaa499/test.pav");
1.83 +const TInt KTestIap = 5;
1.84 +
1.85 +const TInt KTestCustomCommandSuccess = -4444;
1.86 +const TInt KTestCustomCommandFailure = -5555;
1.87 +const TInt KTestGeneralError = -7777;
1.88 +
1.89 +const TInt KPlayStartTime = 1000000;
1.90 +const TInt KPlayEndTime = 2000000;
1.91 +const TInt KTestFrameRate = 25;
1.92 +
1.93 +const TInt KUidTestController = 0x101F88D8;
1.94 +
1.95 + #endif