ReactOS 0.4.16-dev-106-g10b08aa
PathIsTemporary.cpp File Reference
#include "shelltest.h"
#include <undocshell.h>
Include dependency graph for PathIsTemporary.cpp:

Go to the source code of this file.

Functions

static void Test_PathIsTemporaryA (void)
 
static void Test_PathIsTemporaryW (void)
 
 START_TEST (PathIsTemporary)
 

Function Documentation

◆ START_TEST()

START_TEST ( PathIsTemporary  )

Definition at line 53 of file PathIsTemporary.cpp.

54{
57}
static void Test_PathIsTemporaryW(void)
static void Test_PathIsTemporaryA(void)

◆ Test_PathIsTemporaryA()

static void Test_PathIsTemporaryA ( void  )
static

Definition at line 11 of file PathIsTemporary.cpp.

12{
15 ok_int(PathIsTemporaryA("C:\\TestTestTest"), FALSE);
16
19
22
23 PathAppendA(szPath, "TestTestTest");
25
28
30}
#define ok_int(expression, result)
Definition: atltest.h:134
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define MAX_PATH
Definition: compat.h:34
BOOL WINAPI RemoveDirectoryA(IN LPCSTR lpPathName)
Definition: dir.c:714
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition: dir.c:37
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
Definition: path.c:2337
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
Definition: path.c:2054
LPCWSTR szPath
Definition: env.c:37
#define PathAppendA
Definition: pathcch.h:308
BOOL WINAPI PathIsTemporaryA(LPSTR Str)
Definition: shellord.c:2121
#define _countof(array)
Definition: sndvol32.h:70
char CHAR
Definition: xmlstorage.h:175

Referenced by START_TEST().

◆ Test_PathIsTemporaryW()

static void Test_PathIsTemporaryW ( void  )
static

Definition at line 32 of file PathIsTemporary.cpp.

33{
36 ok_int(PathIsTemporaryW(L"C:\\TestTestTest"), FALSE);
37
40
43
44 PathAppendW(szPath, L"TestTestTest");
46
49
51}
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition: dir.c:90
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
Definition: dir.c:732
DWORD WINAPI GetTempPathW(IN DWORD count, OUT LPWSTR path)
Definition: path.c:2080
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
Definition: path.c:2352
#define L(x)
Definition: ntvdm.h:50
#define PathAppendW
Definition: pathcch.h:309
BOOL WINAPI PathIsTemporaryW(LPWSTR Str)
Definition: shellord.c:2144
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by START_TEST().