46 const WCHAR *localName,
const WCHAR *remoteName)
60 return IBackgroundCopyJob_AddFile(
job, remoteUrl, localFile);
70 &IID_IBackgroundCopyManager, (
void **) &manager);
73 win_skip(
"Needed Service is disabled\n");
87 win_skip(
"AddFile() with file:// protocol failed. Tests will be skipped.\n");
88 IBackgroundCopyJob_Release(
job);
90 IBackgroundCopyManager_Release(manager);
103 CLSCTX_LOCAL_SERVER, &IID_IBackgroundCopyManager,
121 IBackgroundCopyJob_Release(
test_job);
133 IBackgroundCopyJob_Release(
test_job);
160 IBackgroundCopyFile_Release(
file);
183 ok(fetched == 1,
"Next returned the incorrect number of files: %08x\n",
hres);
186 IBackgroundCopyFile_Release(
file);
193 ok(fetched == 0,
"Next returned the incorrect number of files: %08x\n",
hres);
214 ok(files[
i] !=
NULL,
"Next returned NULL\n");
216 IBackgroundCopyFile_Release(files[
i]);
292 win_skip(
"Failed to create Manager instance, skipping tests\n");
301 ok(0,
"tests:%d: Unable to setup test\n",
i);
#define GetCurrentDirectoryW(x, y)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI UrlUnescapeW(LPWSTR pszUrl, LPWSTR pszUnescaped, LPDWORD pcchUnescaped, DWORD dwFlags)
HRESULT WINAPI UrlCreateFromPathW(LPCWSTR pszPath, LPWSTR pszUrl, LPDWORD pcchUrl, DWORD dwReserved)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static struct test_info tests[]
static void test_Reset(void)
static void test_Next_errors(void)
static IEnumBackgroundCopyFiles * test_enumFiles
static const WCHAR test_remoteNameB[]
static void test_Next_walkList_2(void)
static void teardown(void)
static const WCHAR test_localNameB[]
static void test_Next_walkListNull(void)
static void test_Next_walkList_1(void)
static const WCHAR test_remoteNameA[]
static void test_GetCount(void)
static void test_Skip_offEnd(void)
static HRESULT addFileHelper(IBackgroundCopyJob *job, const WCHAR *localName, const WCHAR *remoteName)
static void test_Skip_walkList(void)
static IBackgroundCopyJob * test_job
static const WCHAR test_localNameA[]
static IBackgroundCopyManager * test_manager
static const WCHAR test_displayName[]
static HRESULT test_create_manager(void)
static const ULONG test_fileCount
#define URL_UNESCAPE_INPLACE
#define HRESULT_FROM_WIN32(x)
#define ERROR_SERVICE_DISABLED