MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / GetTestResourceDirectory

Function GetTestResourceDirectory

Explorer++/TestHelper/Helper.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void GetTestResourceDirectory(TCHAR *szResourceDirectory, size_t cchMax)
17{
18 TCHAR szProcessPath[MAX_PATH];
19 DWORD dwRet = GetCurrentProcessImageName(szProcessPath, SIZEOF_ARRAY(szProcessPath));
20 ASSERT_NE(0, dwRet);
21
22 BOOL bRet = PathRemoveFileSpec(szProcessPath);
23 ASSERT_EQ(TRUE, bRet);
24
25 ASSERT_EQ(MAX_PATH, cchMax);
26 TCHAR *szRet = PathCombine(szResourceDirectory, szProcessPath, L"..\\TestResources");
27 ASSERT_NE(nullptr, szRet);
28}
29
30void GetTestResourceDirectoryIdl(LPITEMIDLIST *pidl)
31{

Callers 7

SetUpMethod · 0.85
TESTFunction · 0.85
GetTestResourceFilePathFunction · 0.85
SetUpMethod · 0.85
RunTestMethod · 0.85

Calls 1

Tested by 5

SetUpMethod · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
RunTestMethod · 0.68