os/ossrv/genericopenlibs/posixrealtimeextensions/test/testcapclock/inc/tcapclock.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : tcapclock.h
    16 * 
    17 *
    18 */
    19 
    20 
    21 
    22 
    23 #ifndef __TESTCAPCLOCK_H__
    24 #define __TESTCAPCLOCK_H__
    25 
    26 #include <test/testexecutestepbase.h>
    27 #include <unistd.h> 
    28 #include <errno.h>
    29 #include <stdio.h>
    30 #include <e32std.h>
    31 #include <stdlib.h>
    32 #include <string.h>
    33 #include <fcntl.h>
    34 #include <dirent.h>
    35 
    36 #include <pthread.h>
    37 #include <semaphore.h>
    38 
    39 #include <stdarg.h>
    40 
    41 
    42 
    43 // MACROS
    44 //#define ?macro ?macro_def
    45 #define BUF_SIZE 100
    46 
    47 // CONSTANTS
    48 //const ?type ?constant_var = ?constant;
    49 const TInt bufSize = 200;
    50 
    51 
    52 //utility functions
    53 void MakeSpace(char *);
    54 
    55 
    56 
    57 //literals for file operations
    58 _LIT(KTestcapclocksettime1, "Testcapclocksettime1");
    59 
    60 class Ctestcapclock : public CTestStep
    61 	{
    62 public:
    63 	~Ctestcapclock(); 
    64 	Ctestcapclock(const TDesC& aStepName);
    65 	TVerdict doTestStepL();
    66 	TVerdict doTestStepPreambleL();
    67 	TVerdict doTestStepPostambleL();
    68 private:
    69 	
    70 	
    71 	
    72 	//Captests for clock_settime() operations
    73 	TInt Testcapclocksettime1();
    74 
    75 	};
    76 #endif 
    77