1 | /** @file
|
---|
2 | * VBox Shared Folders testcase stub redefinitions.
|
---|
3 | */
|
---|
4 |
|
---|
5 | /*
|
---|
6 | * Copyright (C) 2011-2019 Oracle Corporation
|
---|
7 | *
|
---|
8 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
9 | * available from http://www.virtualbox.org. This file is free software;
|
---|
10 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
11 | * General Public License (GPL) as published by the Free Software
|
---|
12 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
13 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
14 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef VBOX_INCLUDED_SRC_SharedFolders_testcase_tstSharedFolderService_h
|
---|
18 | #define VBOX_INCLUDED_SRC_SharedFolders_testcase_tstSharedFolderService_h
|
---|
19 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
20 | # pragma once
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | /* Grumble... if the coding style let us use the anonymous "struct RTTESTINT *"
|
---|
24 | * instead of "PRTTEST" here we wouldn't need to unnecessarily include this. */
|
---|
25 | #include <iprt/test.h>
|
---|
26 |
|
---|
27 | void testMappingsQuery(RTTEST hTest);
|
---|
28 | /* Sub-tests for testMappingsQuery(). */
|
---|
29 | void testMappingsQuerySimple(RTTEST hTest);
|
---|
30 | void testMappingsQueryTooFewBuffers(RTTEST hTest);
|
---|
31 | void testMappingsQueryAutoMount(RTTEST hTest);
|
---|
32 | void testMappingsQueryArrayWrongSize(RTTEST hTest);
|
---|
33 |
|
---|
34 | void testMappingsQueryName(RTTEST hTest);
|
---|
35 | /* Sub-tests for testMappingsQueryName(). */
|
---|
36 | void testMappingsQueryNameValid(RTTEST hTest);
|
---|
37 | void testMappingsQueryNameInvalid(RTTEST hTest);
|
---|
38 | void testMappingsQueryNameBadBuffer(RTTEST hTest);
|
---|
39 |
|
---|
40 | void testMapFolder(RTTEST hTest);
|
---|
41 | /* Sub-tests for testMapFolder(). */
|
---|
42 | void testMapFolderValid(RTTEST hTest);
|
---|
43 | void testMapFolderInvalid(RTTEST hTest);
|
---|
44 | void testMapFolderTwice(RTTEST hTest);
|
---|
45 | void testMapFolderDelimiter(RTTEST hTest);
|
---|
46 | void testMapFolderCaseSensitive(RTTEST hTest);
|
---|
47 | void testMapFolderCaseInsensitive(RTTEST hTest);
|
---|
48 | void testMapFolderBadParameters(RTTEST hTest);
|
---|
49 |
|
---|
50 | void testUnmapFolder(RTTEST hTest);
|
---|
51 | /* Sub-tests for testUnmapFolder(). */
|
---|
52 | void testUnmapFolderValid(RTTEST hTest);
|
---|
53 | void testUnmapFolderInvalid(RTTEST hTest);
|
---|
54 | void testUnmapFolderBadParameters(RTTEST hTest);
|
---|
55 |
|
---|
56 | void testCreate(RTTEST hTest);
|
---|
57 | /* Sub-tests for testCreate(). */
|
---|
58 | void testCreateFileSimple(RTTEST hTest);
|
---|
59 | void testCreateFileSimpleCaseInsensitive(RTTEST hTest);
|
---|
60 | void testCreateDirSimple(RTTEST hTest);
|
---|
61 | void testCreateBadParameters(RTTEST hTest);
|
---|
62 |
|
---|
63 | void testClose(RTTEST hTest);
|
---|
64 | /* Sub-tests for testClose(). */
|
---|
65 | void testCloseBadParameters(RTTEST hTest);
|
---|
66 |
|
---|
67 | void testRead(RTTEST hTest);
|
---|
68 | /* Sub-tests for testRead(). */
|
---|
69 | void testReadBadParameters(RTTEST hTest);
|
---|
70 | void testReadFileSimple(RTTEST hTest);
|
---|
71 |
|
---|
72 | void testWrite(RTTEST hTest);
|
---|
73 | /* Sub-tests for testWrite(). */
|
---|
74 | void testWriteBadParameters(RTTEST hTest);
|
---|
75 | void testWriteFileSimple(RTTEST hTest);
|
---|
76 |
|
---|
77 | void testLock(RTTEST hTest);
|
---|
78 | /* Sub-tests for testLock(). */
|
---|
79 | void testLockBadParameters(RTTEST hTest);
|
---|
80 | void testLockFileSimple(RTTEST hTest);
|
---|
81 |
|
---|
82 | void testFlush(RTTEST hTest);
|
---|
83 | /* Sub-tests for testFlush(). */
|
---|
84 | void testFlushBadParameters(RTTEST hTest);
|
---|
85 | void testFlushFileSimple(RTTEST hTest);
|
---|
86 |
|
---|
87 | void testDirList(RTTEST hTest);
|
---|
88 | /* Sub-tests for testDirList(). */
|
---|
89 | void testDirListBadParameters(RTTEST hTest);
|
---|
90 | void testDirListEmpty(RTTEST hTest);
|
---|
91 |
|
---|
92 | void testReadLink(RTTEST hTest);
|
---|
93 | /* Sub-tests for testReadLink(). */
|
---|
94 | void testReadLinkBadParameters(RTTEST hTest);
|
---|
95 |
|
---|
96 | void testFSInfo(RTTEST hTest);
|
---|
97 | /* Sub-tests for testFSInfo(). */
|
---|
98 | void testFSInfoBadParameters(RTTEST hTest);
|
---|
99 | void testFSInfoQuerySetFMode(RTTEST hTest);
|
---|
100 | void testFSInfoQuerySetDirATime(RTTEST hTest);
|
---|
101 | void testFSInfoQuerySetFileATime(RTTEST hTest);
|
---|
102 | void testFSInfoQuerySetEndOfFile(RTTEST hTest);
|
---|
103 |
|
---|
104 | void testRemove(RTTEST hTest);
|
---|
105 | /* Sub-tests for testRemove(). */
|
---|
106 | void testRemoveBadParameters(RTTEST hTest);
|
---|
107 |
|
---|
108 | void testRename(RTTEST hTest);
|
---|
109 | /* Sub-tests for testRename(). */
|
---|
110 | void testRenameBadParameters(RTTEST hTest);
|
---|
111 |
|
---|
112 | void testSymlink(RTTEST hTest);
|
---|
113 | /* Sub-tests for testSymlink(). */
|
---|
114 | void testSymlinkBadParameters(RTTEST hTest);
|
---|
115 |
|
---|
116 | void testMappingsAdd(RTTEST hTest);
|
---|
117 | /* Sub-tests for testMappingsAdd(). */
|
---|
118 | void testMappingsAddBadParameters(RTTEST hTest);
|
---|
119 |
|
---|
120 | void testMappingsRemove(RTTEST hTest);
|
---|
121 | /* Sub-tests for testMappingsRemove(). */
|
---|
122 | void testMappingsRemoveBadParameters(RTTEST hTest);
|
---|
123 |
|
---|
124 | #if 0 /* Where should this go? */
|
---|
125 | void testSetStatusLed(RTTEST hTest);
|
---|
126 | /* Sub-tests for testStatusLed(). */
|
---|
127 | void testSetStatusLedBadParameters(RTTEST hTest);
|
---|
128 | #endif
|
---|
129 |
|
---|
130 | #endif /* !VBOX_INCLUDED_SRC_SharedFolders_testcase_tstSharedFolderService_h */
|
---|