1 /* 2 * PROJECT: ReactOS api tests 3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) 4 * PURPOSE: Test for CPath 5 * COPYRIGHT: Copyright 2021 Mark Jansen <mark.jansen@reactos.org> 6 */ 7 8 #include <atlpath.h> 9 #include "resource.h" 10 11 #ifdef HAVE_APITEST 12 #include <apitest.h> 13 #else 14 #include "atltest.h" 15 #endif 16 17 #undef ok 18 #undef _T 19 20 #define TEST_NAMEX(name) void test_##name##W() 21 #define CPathX CPathW 22 #define CStringX CStringW 23 #define _X(x) L ## x 24 #define XCHAR WCHAR 25 #define dbgstrx(x) wine_dbgstr_w(x) 26 #define ok ok_("CPathW:\n" __FILE__, __LINE__) 27 #define GetModuleFileNameX GetModuleFileNameW 28 #include "CPath.inl" 29 30 #undef CPathX 31 #undef CStringX 32 #undef TEST_NAMEX 33 #undef _X 34 #undef XCHAR 35 #undef dbgstrx 36 #undef ok 37 #undef GetModuleFileNameX 38 39 #define TEST_NAMEX(name) void test_##name##A() 40 #define CPathX CPathA 41 #define CStringX CStringA 42 #define _X(x) x 43 #define XCHAR CHAR 44 #define dbgstrx(x) (const char*)x 45 #define ok ok_("CPathA:\n" __FILE__, __LINE__) 46 #define GetModuleFileNameX GetModuleFileNameA 47 #include "CPath.inl" 48 49 START_TEST(CPath) 50 { 51 test_initW(); 52 test_initA(); 53 54 test_modifyW(); 55 test_modifyA(); 56 57 test_is_somethingW(); 58 test_is_somethingA(); 59 } 60