VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedFolders/teststubs.h@ 39541

Last change on this file since 39541 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: 2.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/**
18 * Macros for renaming iprt file operations to redirect them to testcase
19 * stub functions (mocks). The religiously correct way to do this would be
20 * to make the service use a file operations structure with function pointers
21 * but I'm not sure that would be universally appreciated. */
22
23#ifndef __VBSF_TEST_STUBS__H
24#define __VBSF_TEST_STUBS__H
25
26#define RTDirClose testRTDirClose
27#define RTDirCreate testRTDirCreate
28#define RTDirOpen testRTDirOpen
29#define RTDirQueryInfo testRTDirQueryInfo
30#define RTDirRemove testRTDirRemove
31#define RTDirReadEx testRTDirReadEx
32#define RTDirSetTimes testRTDirSetTimes
33#define RTFileClose testRTFileClose
34#define RTFileDelete testRTFileDelete
35#define RTFileFlush testRTFileFlush
36#define RTFileLock testRTFileLock
37#define RTFileOpen testRTFileOpen
38#define RTFileQueryInfo testRTFileQueryInfo
39#define RTFileRead testRTFileRead
40#define RTFileSetMode testRTFileSetMode
41#define RTFileSetSize testRTFileSetSize
42#define RTFileSetTimes testRTFileSetTimes
43#define RTFileSeek testRTFileSeek
44#define RTFileUnlock testRTFileUnlock
45#define RTFileWrite testRTFileWrite
46#define RTFsQueryProperties testRTFsQueryProperties
47#define RTFsQuerySerial testRTFsQuerySerial
48#define RTFsQuerySizes testRTFsQuerySizes
49#define RTPathQueryInfoEx testRTPathQueryInfoEx
50#define RTSymlinkDelete testRTSymlinkDelete
51#define RTSymlinkRead testRTSymlinkRead
52
53#endif /* __VBSF_TEST_STUBS__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