|
1 /* |
|
2 * Copyright (c) 2006-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 : tutime.h |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /* |
|
23 * ============================================================================== |
|
24 * Name : tutime.h |
|
25 * Part of : testutime |
|
26 * |
|
27 * Description : ?Description |
|
28 * Version: 0.5 |
|
29 * |
|
30 * Copyright (C) 2002 Nokia Corporation. |
|
31 * This material, including documentation and any related |
|
32 * computer programs, is protected by copyright controlled by |
|
33 * Nokia Corporation. All rights are reserved. Copying, |
|
34 * including reproducing, storing, adapting or translating, any |
|
35 * or all of this material requires the prior written consent of |
|
36 * Nokia Corporation. This material also contains confidential |
|
37 * information which may not be disclosed to others without the |
|
38 * prior written consent of Nokia Corporation. |
|
39 * |
|
40 * ============================================================================ |
|
41 */ |
|
42 |
|
43 #ifndef __TESTutime_H__ |
|
44 #define __TESTutime_H__ |
|
45 |
|
46 #include <test/testexecutestepbase.h> |
|
47 #include <utime.h> |
|
48 #include <errno.h> |
|
49 #include <utime.h> |
|
50 #include <e32std.h> |
|
51 #include <stdlib.h> |
|
52 #include <string.h> |
|
53 #include <fcntl.h> |
|
54 #include <dirent.h> |
|
55 |
|
56 #include <pthread.h> |
|
57 #include <semaphore.h> |
|
58 |
|
59 #include <stdarg.h> |
|
60 |
|
61 |
|
62 |
|
63 // MACROS |
|
64 //#define ?macro ?macro_def |
|
65 #define BUF_SIZE 100 |
|
66 |
|
67 // CONSTANTS |
|
68 //const ?type ?constant_var = ?constant; |
|
69 const TInt bufSize = 200; |
|
70 |
|
71 |
|
72 //utility functions |
|
73 void MakeSpace(char *); |
|
74 |
|
75 |
|
76 |
|
77 //literals for file operations |
|
78 _LIT(Kutimesys, "utimesys"); |
|
79 _LIT(Kutimeprivate, "utimeprivate"); |
|
80 |
|
81 class CTestutime : public CTestStep |
|
82 { |
|
83 public: |
|
84 ~CTestutime(); |
|
85 CTestutime(const TDesC& aStepName); |
|
86 TVerdict doTestStepL(); |
|
87 TVerdict doTestStepPreambleL(); |
|
88 TVerdict doTestStepPostambleL(); |
|
89 private: |
|
90 |
|
91 |
|
92 |
|
93 //Captests for file operations |
|
94 TInt utimesys(); |
|
95 TInt utimeprivate(); |
|
96 |
|
97 }; |
|
98 #endif |
|
99 |