29#define FILEPATH "save/campaign/"
30#define FILE "unittest1.savx"
31#define FILENAME FILEPATH FILE
77 ASSERT_TRUE(
size > 0);
78 ASSERT_TRUE(
nullptr !=
buf);
85 ASSERT_TRUE(countAfterUpload != -1);
86 ASSERT_TRUE(countAfterUpload >= 1);
89 ASSERT_TRUE(countAfterDelete != -1);
90 ASSERT_EQ(countAfterDelete, countAfterUpload - 1);
static void SetUpTestCase()
static void TearDownTestCase()
int FS_LoadFile(const char *path, byte **buffer)
Filenames are relative to the quake search path.
void FS_FreeFile(void *buffer)
int FS_WriteFile(const void *buffer, size_t len, const char *filename)
const char * FS_Gamedir(void)
Called to find where to write a file (savegames, etc).
bool FS_FileExists(const char *filename,...)
Checks whether a file exists (not in virtual filesystem).
void Com_ParseScripts(bool onlyServer)
bool Q_strnull(const char *string)
const char * TEST_GetStringProperty(const char *name)
static const char * password
bool WEB_CGameUpload(const char *cgameId, int category, const char *filename)
Uploads a file to the server.
bool WEB_CGameDelete(const char *cgameId, int category, const char *filename)
Deletes a user owned file on the server.
int WEB_CGameListForUser(const char *cgameId, int category, int userId)
Shows the uploaded files for the particular cgame category and the given userid.
bool WEB_CGameDownloadFromUser(const char *cgameId, int category, const char *filename, int userId)
Downloads a file from the server and store it in the user directory.
UFOAI web interface management. c(lient)game related stuff.
bool WEB_Auth(const char *username, const char *password)
Performs a web auth request.
void WEB_InitStartup(void)
UFOAI web interface management. Authentication as well as uploading/downloading stuff to and from you...