#include <stdio.h>
#include <shlwapi.h>
#include "wine/test.h"
#include "bits.h"
Go to the source code of this file.
◆ COBJMACROS
◆ test_t
◆ addFileHelper()
Definition at line 41 of file file.c.
43{
45
53
55}
#define GetCurrentDirectoryW(x, y)
HRESULT WINAPI UrlCreateFromPathW(const WCHAR *path, WCHAR *url, DWORD *url_len, DWORD reserved)
HRESULT WINAPI UrlUnescapeW(WCHAR *url, WCHAR *unescaped, DWORD *unescaped_len, DWORD flags)
static WCHAR test_remoteUrl[MAX_PATH]
static WCHAR test_localFile[MAX_PATH]
#define URL_UNESCAPE_INPLACE
Referenced by setup(), and test_create_manager().
◆ setup()
Definition at line 91 of file file.c.
92{
95
99
101 CLSCTX_LOCAL_SERVER, &IID_IBackgroundCopyManager,
105
109 {
112 }
113
116 {
117 IBackgroundCopyJob_Release(
test_job);
120 }
121
124 {
126 IBackgroundCopyJob_Release(
test_job);
129 }
130
132}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
static IEnumBackgroundCopyFiles * test_enumFiles
static HRESULT addFileHelper(IBackgroundCopyJob *job, const WCHAR *localName, const WCHAR *remoteName)
static IBackgroundCopyJob * test_job
static IBackgroundCopyFile * test_file
Referenced by START_TEST().
◆ START_TEST()
Definition at line 184 of file file.c.
185{
190 0
191 };
194
196
198 {
200 win_skip(
"Failed to create Manager instance, skipping tests\n");
201 return;
202 }
203
205 {
206
208 {
209 ok(0,
"tests:%d: Unable to setup test\n",
i);
210 break;
211 }
212 (*test)();
214 }
216}
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
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 teardown(void)
static void test_GetProgress_PreTransfer(void)
static void test_GetLocalName(void)
static void test_GetRemoteName(void)
static HRESULT test_create_manager(void)
◆ teardown()
◆ test_create_manager()
Definition at line 57 of file file.c.
58{
61
62
64 &IID_IBackgroundCopyManager, (void **) &manager);
65
67 win_skip(
"Needed Service is disabled\n");
69 }
70
72 {
75
76 hres = IBackgroundCopyManager_CreateJob(manager,
L"Test", BG_JOB_TYPE_DOWNLOAD, &jobId, &
job);
78 {
81 win_skip(
"AddFile() with file:// protocol failed. Tests will be skipped.\n");
82 IBackgroundCopyJob_Release(
job);
83 }
84 IBackgroundCopyManager_Release(manager);
85 }
86
88}
static HRESULT HRESULT_FROM_WIN32(unsigned int x)
#define ERROR_SERVICE_DISABLED
Referenced by START_TEST().
◆ test_GetLocalName()
Definition at line 156 of file file.c.
157{
160
165}
void WINAPI CoTaskMemFree(void *ptr)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
Referenced by START_TEST().
◆ test_GetProgress_PreTransfer()
| static void test_GetProgress_PreTransfer |
( |
void |
| ) |
|
|
static |
Definition at line 168 of file file.c.
169{
172
175 ok(
progress.BytesTotal == BG_SIZE_UNKNOWN,
"Got incorrect total size: %s\n",
177 ok(
progress.BytesTransferred == 0,
"Got incorrect number of transferred bytes: %s\n",
180}
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
Referenced by START_TEST().
◆ test_GetRemoteName()
◆ test_enumFiles
◆ test_file
Definition at line 36 of file file.c.
Referenced by add_file(), setup(), teardown(), test__stat32(), test_GetLocalName(), test_GetProgress_PreTransfer(), test_GetRemoteName(), test_mmio_buffer_pointer(), test_mmio_end_of_file(), test_mmioSeek(), test_PlaySound(), test_SHCreateStreamOnFileA(), test_SHCreateStreamOnFileEx(), and test_SHCreateStreamOnFileW().
◆ test_job
◆ test_localFile
◆ test_manager
◆ test_remoteUrl