ReactOS 0.4.15-dev-8135-g1bc6c90
PathIsTemporary.cpp
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS API Tests
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Tests for PathIsTemporaryA/W
5 * COPYRIGHT: Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6 */
7
8#include "shelltest.h"
9#include <undocshell.h>
10
11static void Test_PathIsTemporaryA(void)
12{
15 ok_int(PathIsTemporaryA("C:\\TestTestTest"), FALSE);
16
19
22
23 PathAppendA(szPath, "TestTestTest");
25
28
30}
31
32static void Test_PathIsTemporaryW(void)
33{
36 ok_int(PathIsTemporaryW(L"C:\\TestTestTest"), FALSE);
37
40
43
44 PathAppendW(szPath, L"TestTestTest");
46
49
51}
52
53START_TEST(PathIsTemporary)
54{
57}
static void Test_PathIsTemporaryW(void)
static void Test_PathIsTemporaryA(void)
#define START_TEST(x)
Definition: atltest.h:75
#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 CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition: dir.c:90
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
Definition: dir.c:732
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
Definition: dir.c:37
DWORD WINAPI GetTempPathW(IN DWORD count, OUT LPWSTR path)
Definition: path.c:2080
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
Definition: path.c:2337
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
Definition: path.c:2352
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
Definition: path.c:2054
LPCWSTR szPath
Definition: env.c:37
#define L(x)
Definition: ntvdm.h:50
#define PathAppendA
Definition: pathcch.h:308
#define PathAppendW
Definition: pathcch.h:309
BOOL WINAPI PathIsTemporaryW(LPWSTR Str)
Definition: shellord.c:1944
BOOL WINAPI PathIsTemporaryA(LPSTR Str)
Definition: shellord.c:1921
#define _countof(array)
Definition: sndvol32.h:70
__wchar_t WCHAR
Definition: xmlstorage.h:180
char CHAR
Definition: xmlstorage.h:175