VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedFolders/testcase/tstSharedFolderService.h@ 45808

Last change on this file since 45808 was 39540, checked in by vboxsync, 13 years ago

HostServices/SharedFolders: starter unit test.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 KB
Line 
1/** @file
2 * VBox Shared Folders testcase stub redefinitions.
3 */
4
5/*
6 * Copyright (C) 2011 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 __VBSF_TEST_SHARED_FOLDER_SERVICE__H
18#define __VBSF_TEST_SHARED_FOLDER_SERVICE__H
19
20/* Grumble... if the coding style let us use the anonymous "struct RTTESTINT *"
21 * instead of "PRTTEST" here we wouldn't need to unnecessarily include this. */
22#include <iprt/test.h>
23
24void testMappingsQuery(RTTEST hTest);
25/* Sub-tests for testMappingsQuery(). */
26void testMappingsQuerySimple(RTTEST hTest);
27void testMappingsQueryTooFewBuffers(RTTEST hTest);
28void testMappingsQueryAutoMount(RTTEST hTest);
29void testMappingsQueryArrayWrongSize(RTTEST hTest);
30
31void testMappingsQueryName(RTTEST hTest);
32/* Sub-tests for testMappingsQueryName(). */
33void testMappingsQueryNameValid(RTTEST hTest);
34void testMappingsQueryNameInvalid(RTTEST hTest);
35void testMappingsQueryNameBadBuffer(RTTEST hTest);
36
37void testMapFolder(RTTEST hTest);
38/* Sub-tests for testMapFolder(). */
39void testMapFolderValid(RTTEST hTest);
40void testMapFolderInvalid(RTTEST hTest);
41void testMapFolderTwice(RTTEST hTest);
42void testMapFolderDelimiter(RTTEST hTest);
43void testMapFolderCaseSensitive(RTTEST hTest);
44void testMapFolderCaseInsensitive(RTTEST hTest);
45void testMapFolderBadParameters(RTTEST hTest);
46
47void testUnmapFolder(RTTEST hTest);
48/* Sub-tests for testUnmapFolder(). */
49void testUnmapFolderValid(RTTEST hTest);
50void testUnmapFolderInvalid(RTTEST hTest);
51void testUnmapFolderBadParameters(RTTEST hTest);
52
53void testCreate(RTTEST hTest);
54/* Sub-tests for testCreate(). */
55void testCreateFileSimple(RTTEST hTest);
56void testCreateDirSimple(RTTEST hTest);
57void testCreateBadParameters(RTTEST hTest);
58
59void testClose(RTTEST hTest);
60/* Sub-tests for testClose(). */
61void testCloseBadParameters(RTTEST hTest);
62
63void testRead(RTTEST hTest);
64/* Sub-tests for testRead(). */
65void testReadBadParameters(RTTEST hTest);
66void testReadFileSimple(RTTEST hTest);
67
68void testWrite(RTTEST hTest);
69/* Sub-tests for testWrite(). */
70void testWriteBadParameters(RTTEST hTest);
71void testWriteFileSimple(RTTEST hTest);
72
73void testLock(RTTEST hTest);
74/* Sub-tests for testLock(). */
75void testLockBadParameters(RTTEST hTest);
76void testLockFileSimple(RTTEST hTest);
77
78void testFlush(RTTEST hTest);
79/* Sub-tests for testFlush(). */
80void testFlushBadParameters(RTTEST hTest);
81void testFlushFileSimple(RTTEST hTest);
82
83void testDirList(RTTEST hTest);
84/* Sub-tests for testDirList(). */
85void testDirListBadParameters(RTTEST hTest);
86void testDirListEmpty(RTTEST hTest);
87
88void testReadLink(RTTEST hTest);
89/* Sub-tests for testReadLink(). */
90void testReadLinkBadParameters(RTTEST hTest);
91
92void testFSInfo(RTTEST hTest);
93/* Sub-tests for testFSInfo(). */
94void testFSInfoBadParameters(RTTEST hTest);
95void testFSInfoQuerySetFMode(RTTEST hTest);
96void testFSInfoQuerySetDirATime(RTTEST hTest);
97void testFSInfoQuerySetFileATime(RTTEST hTest);
98void testFSInfoQuerySetEndOfFile(RTTEST hTest);
99
100void testRemove(RTTEST hTest);
101/* Sub-tests for testRemove(). */
102void testRemoveBadParameters(RTTEST hTest);
103
104void testRename(RTTEST hTest);
105/* Sub-tests for testRename(). */
106void testRenameBadParameters(RTTEST hTest);
107
108void testSymlink(RTTEST hTest);
109/* Sub-tests for testSymlink(). */
110void testSymlinkBadParameters(RTTEST hTest);
111
112void testMappingsAdd(RTTEST hTest);
113/* Sub-tests for testMappingsAdd(). */
114void testMappingsAddBadParameters(RTTEST hTest);
115
116void testMappingsRemove(RTTEST hTest);
117/* Sub-tests for testMappingsRemove(). */
118void testMappingsRemoveBadParameters(RTTEST hTest);
119
120#if 0 /* Where should this go? */
121void testSetStatusLed(RTTEST hTest);
122/* Sub-tests for testStatusLed(). */
123void testSetStatusLedBadParameters(RTTEST hTest);
124#endif
125
126#endif /* __VBSF_TEST_SHARED_FOLDER_SERVICE__H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette