Macros | |
#define | __BEGIN_DECLS |
#define | __END_DECLS |
#define | _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2) |
#define | _PRINTF_ATTRIBUTE(a1, a2) |
#define __BEGIN_DECLS |
#define __END_DECLS |
#define _PRINTF_ATTRIBUTE | ( | a1, | |
a2 | |||
) | PRINTF_ATTRIBUTE(a1, a2) |
#define _PRINTF_ATTRIBUTE | ( | a1, | |
a2 | |||
) |
void mapitest_common_cleanup | ( | struct mapitest * | mt) |
Convenience function to clean up after logging into the server.
This functions cleans up after a mapitest_common_setup() call
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mt_common_tf_ctx::obj_store, mt_common_tf_ctx::obj_test_folder, mt_common_tf_ctx::obj_test_msg, mt_common_tf_ctx::obj_top_folder, and mapitest::priv.
Referenced by mapitest_oxcfold_HardDeleteMessagesAndSubfolders(), mapitest_oxcfxics_CopyFolder(), mapitest_oxcfxics_CopyMessages(), mapitest_oxcfxics_CopyProperties(), mapitest_oxcfxics_CopyTo(), mapitest_oxcfxics_DestConfigure(), mapitest_oxcfxics_SetLocalReplicaMidsetDeleted(), mapitest_oxcfxics_SyncConfigure(), mapitest_oxcfxics_SyncOpenCollector(), mapitest_oxcmsg_SetReadFlags(), mapitest_oxctable_Category(), mapitest_oxctable_CreateBookmark(), mapitest_oxctable_GetStatus(), mapitest_oxctable_QueryColumns(), mapitest_oxctable_QueryRows(), mapitest_oxctable_Restrict(), mapitest_oxctable_SeekRow(), mapitest_oxctable_SeekRowApprox(), mapitest_oxctable_SeekRowBookmark(), mapitest_oxctable_SetColumns(), and mapitest_oxomsg_TransportNewMail().
bool mapitest_common_create_filled_test_folder | ( | struct mapitest * | mt) |
Create a test folder, and fill with 10 sample messages.
This function creates a test folder (name set by the MT_DIRNAME_TEST define), and fills it with 5 messages with the same subject and 5 messages with the same sender.
mt | pointer to the mapitest context |
References mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, mt_common_tf_ctx::obj_test_msg, mt_common_tf_ctx::obj_top_folder, and mapitest::priv.
Referenced by mapitest_common_setup().
bool mapitest_common_find_folder | ( | struct mapitest * | , |
mapi_object_t * | obj_parent, | ||
mapi_object_t * | obj_child, | ||
const char * | |||
) |
Find a folder within a container.
References mapitest::mem_ctx.
Referenced by mapitest_oxcfold_CopyFolder(), and mapitest_oxcfold_MoveFolder().
bool mapitest_common_folder_open | ( | struct mapitest * | mt, |
mapi_object_t * | obj_parent, | ||
mapi_object_t * | obj_child, | ||
uint32_t | olNum | ||
) |
Opens a default folder.
This function opens one of the default (standard) folders, returning the folder as obj_child. olNum may be one of:
mt | pointer to the top level mapitest structure |
obj_parent | parent folder (usually the message store, must be opened) |
obj_child | the folder that has been opened |
olNum | the folder identifier (see list above) |
References mapitest_print().
Referenced by mapitest_common_setup(), mapitest_oxcfold_CopyFolder(), mapitest_oxcfold_MoveFolder(), mapitest_oxcmsg_CreateMessage(), mapitest_oxcmsg_GetValidAttachments(), mapitest_oxcmsg_OpenEmbeddedMessage(), mapitest_oxcmsg_SetMessageReadFlag(), mapitest_oxcnotif_RegisterNotification(), mapitest_oxomsg_SpoolerLockMessage(), mapitest_oxomsg_TransportSend(), and mapitest_oxorule_GetRulesTable().
char* mapitest_common_genblob | ( | TALLOC_CTX * | mem_ctx, |
size_t | len | ||
) |
Generate a random blob of readable data.
mem_ctx | the talloc memory context to create the blob in |
len | the length of the blob to create |
Referenced by mapitest_oxcprpt_CopyToStream(), mapitest_oxcprpt_Stream(), and mapitest_oxcprpt_WriteAndCommitStream().
bool mapitest_common_message_create | ( | struct mapitest * | , |
mapi_object_t * | obj_folder, | ||
mapi_object_t * | obj_message, | ||
const char * | |||
) |
Create a message ready to submit.
References mapitest_common_message_fill(), and mapitest_print_retval().
Referenced by mapitest_common_create_filled_test_folder(), mapitest_oxcfold_HardDeleteMessages(), mapitest_oxcfold_MoveCopyMessages(), mapitest_oxcfold_MoveFolder(), mapitest_oxcmsg_GetValidAttachments(), mapitest_oxcmsg_OpenEmbeddedMessage(), mapitest_oxcmsg_SetMessageReadFlag(), mapitest_oxcprpt_CopyProps(), mapitest_oxcprpt_CopyTo(), mapitest_oxcprpt_CopyToStream(), mapitest_oxcprpt_DeleteProps(), mapitest_oxcprpt_NameId(), mapitest_oxcprpt_Stream(), mapitest_oxcprpt_WriteAndCommitStream(), mapitest_oxomsg_AbortSubmit(), mapitest_oxomsg_SpoolerLockMessage(), mapitest_oxomsg_SubmitMessage(), and mapitest_oxomsg_TransportSend().
bool mapitest_common_message_delete_by_subject | ( | struct mapitest * | mt, |
mapi_object_t * | obj_folder, | ||
const char * | subject | ||
) |
This function deletes messages in a folder, based on matching the subject name.
This is meant to clean up a folder after a test has been run.
mt | pointer to the top level mapitest structure |
obj_folder | the folder to search through |
subject | the message subject to match |
References mapitest_print(), mapitest_print_retval(), and mapitest::mem_ctx.
Referenced by mapitest_oxomsg_AbortSubmit(), mapitest_oxomsg_SubmitMessage(), and mapitest_oxomsg_TransportSend().
bool mapitest_common_message_fill | ( | struct mapitest * | , |
mapi_object_t * | obj_message, | ||
const char * | |||
) |
Create a message ready to submit.
References mapitest_print_retval(), mapitest::mem_ctx, and mapitest::profile.
Referenced by mapitest_common_message_create(), and mapitest_oxcmsg_OpenEmbeddedMessage().
bool mapitest_common_setup | ( | struct mapitest * | mt, |
mapi_object_t * | obj_htable, | ||
uint32_t * | count | ||
) |
Convenience function to login to the server.
This functions logs into the server, gets the top level store, and gets the hierarchy table for the top level store (which is returned as obj_htable). It also creates a test folder with 10 test messages.
mt | pointer to the top-level mapitest structure |
obj_htable | the hierarchy table for the top level store |
count | the number of rows in the top level hierarchy table |
References mapitest_common_create_filled_test_folder(), mapitest_common_folder_open(), mapitest_print_retval(), mapitest::mem_ctx, mt_common_tf_ctx::obj_store, mt_common_tf_ctx::obj_top_folder, mapitest::priv, and mapitest::session.
Referenced by mapitest_oxcfold_HardDeleteMessagesAndSubfolders(), mapitest_oxcfxics_CopyFolder(), mapitest_oxcfxics_CopyMessages(), mapitest_oxcfxics_CopyProperties(), mapitest_oxcfxics_CopyTo(), mapitest_oxcfxics_DestConfigure(), mapitest_oxcfxics_SetLocalReplicaMidsetDeleted(), mapitest_oxcfxics_SyncConfigure(), mapitest_oxcfxics_SyncOpenCollector(), mapitest_oxcmsg_SetReadFlags(), mapitest_oxctable_Category(), mapitest_oxctable_CreateBookmark(), mapitest_oxctable_GetStatus(), mapitest_oxctable_QueryColumns(), mapitest_oxctable_QueryRows(), mapitest_oxctable_Restrict(), mapitest_oxctable_SeekRow(), mapitest_oxctable_SeekRowApprox(), mapitest_oxctable_SeekRowBookmark(), mapitest_oxctable_SetColumns(), and mapitest_oxomsg_TransportNewMail().
void mapitest_deindent | ( | void | ) |
Deindent the mapitest_print tabulation counter
Referenced by mapitest_oxcfold_CreateFolder(), mapitest_oxcfold_OpenFolder(), mapitest_print_headers(), mapitest_print_headers_info(), mapitest_print_headers_server_info(), mapitest_print_module_title_end(), and mapitest_print_test_title_end().
bool mapitest_errorchecks_simplemapi_c | ( | struct mapitest * | mt) |
Verify simplemapi.c functions
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print().
Referenced by module_errorchecks_init().
void mapitest_indent | ( | void | ) |
Indent the mapitest_print tabulation counter
Referenced by mapitest_oxcfold_CreateFolder(), mapitest_oxcfold_OpenFolder(), mapitest_print_headers(), mapitest_print_headers_info(), mapitest_print_headers_server_info(), mapitest_print_module_title_start(), mapitest_print_test_title_start(), and mapitest_print_title().
bool mapitest_lcid_langcode2langtag | ( | struct mapitest * | mt) |
Verify libmapi/util/lcid.c functions
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print().
Referenced by module_lcid_init().
bool mapitest_lzxpress_validate_test_001 | ( | struct mapitest * | ) |
References mapitest_print(), mapitest_print_retval_fmt(), mapitest_print_retval_step(), and mapitest::mem_ctx.
Referenced by module_lzxpress_init().
bool mapitest_mapidump_appointment | ( | struct mapitest * | mt) |
Test message dump using mapidump_appointment
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_contact | ( | struct mapitest * | mt) |
Test dump using mapidump_contact
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_foldercopied | ( | struct mapitest * | mt) |
Test dump of a folder copy notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_foldercreated | ( | struct mapitest * | mt) |
Test dump of a Folder creation notification
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_folderdeleted | ( | struct mapitest * | mt) |
Test dump of a Folder deletion notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_foldermoved | ( | struct mapitest * | mt) |
Test dump of a folder move notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_freebusy | ( | struct mapitest * | mt) |
Test dump of a free/busy event
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print(), and mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_message | ( | struct mapitest * | mt) |
Test dump of an email message using mapidump_message
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagecopied | ( | struct mapitest * | mt) |
Test dump of a Message copied notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagecreated | ( | struct mapitest * | mt) |
Test dump of a Message creation notification
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagedeleted | ( | struct mapitest * | mt) |
Test dump of a Message deletion notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagemodified | ( | struct mapitest * | mt) |
Test dump of a Message modification notification
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_messagemoved | ( | struct mapitest * | mt) |
Test dump of a Message moved notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_newmail | ( | struct mapitest * | mt) |
Test dump of an new mail notification
This function:
mt | pointer to the top-level mapitest structure |
Referenced by module_mapidump_init().
bool mapitest_mapidump_note | ( | struct mapitest * | mt) |
Test dump using mapidump_note
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_pabentry | ( | struct mapitest * | mt) |
Test dump using mapidump_pabentry
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_recipients | ( | struct mapitest * | mt) |
Test dump of a set of recipients
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_sproptagarray | ( | struct mapitest * | mt) |
Test dump using mapidump_SPropTagArray
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_spropvalue | ( | struct mapitest * | mt) |
Test dump using mapidump_SPropValue
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_srowset | ( | struct mapitest * | mt) |
Test dump using mapidump_SRowSet
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_mapidump_task | ( | struct mapitest * | mt) |
Test dump using mapidump_task
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print(), and mapitest::mem_ctx.
Referenced by module_mapidump_init().
bool mapitest_noserver_lzfu | ( | struct mapitest * | mt) |
Test the Compressed RTF decompression routine.
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, RTF_COMPRESSED1_HEX, RTF_COMPRESSED2_HEX, RTF_UNCOMPRESSED1, and RTF_UNCOMPRESSED2.
Referenced by module_noserver_init().
bool mapitest_noserver_mapi_properties | ( | struct mapitest * | mt) |
Test the mapi_SPropValue_array handling
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), and mapitest::mem_ctx.
Referenced by module_noserver_init().
bool mapitest_noserver_properties | ( | struct mapitest * | mt) |
Test the property setter / getter code
This function:
mt | pointer on the top-level mapitest structure |
Referenced by module_noserver_init().
bool mapitest_noserver_proptagvalue | ( | struct mapitest * | mt) |
Test the get_proptag_value() function
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print().
Referenced by module_noserver_init().
bool mapitest_noserver_rtfcp | ( | struct mapitest * | mt) |
Test the Compressed RTF compression routine.
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, RTF_COMPRESSED1_HEX, RTF_COMPRESSED2_HEX, RTF_UNCOMPRESSED1, and RTF_UNCOMPRESSED2.
Referenced by module_noserver_init().
bool mapitest_noserver_rtfcp_large | ( | struct mapitest * | mt) |
Test the Compressed RTF compression / decompression routines on a larger file
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), and mapitest::mem_ctx.
Referenced by module_noserver_init().
bool mapitest_noserver_srowset | ( | struct mapitest * | mt) |
Test the SRowSet parsing / assembly code
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print().
Referenced by module_noserver_init().
bool mapitest_nspi_CompareMIds | ( | struct mapitest * | mt) |
Test the NspiCompareMIds RPC operation (0x0a)
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_DNToMId | ( | struct mapitest * | mt) |
Test the NspiDNToMId RPC operation (0x7)
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetGALTable | ( | struct mapitest * | mt) |
Test the GetGALTable function
mt | pointer to the top-level mapitest structure |
References mapitest_print_PAB_entry(), mapitest_print_retval_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetIDsFromNames | ( | struct mapitest * | mt) |
Test the NspiGetIDsFromNames RPC operation (0x12)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetMatches | ( | struct mapitest * | mt) |
Test the NspiGetMatches RPC operation (0x5)
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetNamesFromIDs | ( | struct mapitest * | mt) |
Test the NspiGetNamesFromIDs RPC operation (0x11)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetPropList | ( | struct mapitest * | mt) |
Test the NspiGetPropList RPC operation (0x08)
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetProps | ( | struct mapitest * | mt) |
Test the NspiGetProps RPC operation (0x09)
mt | pointer to the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print_retval(), mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetSpecialTable | ( | struct mapitest * | mt) |
Test the NspiGetSpecialTable RPC operation (0x0c)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_GetTemplateInfo | ( | struct mapitest * | mt) |
Test the NspiGetTemplateInfo RPC operation (0x0d)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_ModLinkAtt | ( | struct mapitest * | mt) |
Test the NspiModLinkAtt RPC operation (0x0e)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_ModProps | ( | struct mapitest * | mt) |
Test the NspiModProps RPC operation (0xb)
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print(), mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_QueryColumns | ( | struct mapitest * | mt) |
Test the NspiQueryColumns RPC operation (0x10)
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_QueryRows | ( | struct mapitest * | mt) |
Test the NspiQueryRows RPC operation (0x3)
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_ResolveNames | ( | struct mapitest * | mt) |
Test the NspiResolveNames and NspiResolveNamesW RPC operations (0x13 and 0x14)
mt | pointer on the top-level mapitest structure |
References mapitest::info, mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mapitest::profile, and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_ResortRestriction | ( | struct mapitest * | mt) |
Test the NspiResortRestriction RPC operation (0x6)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_SeekEntries | ( | struct mapitest * | mt) |
Test the NspiSeekEntries RPC operation (0x04)
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_nspi_UpdateStat | ( | struct mapitest * | mt) |
Test the NspiUpdateStat RPC operation (0x02)
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_nspi_init().
bool mapitest_oxcfold_CopyFolder | ( | struct mapitest * | mt) |
Test the CopyFolder (0x36) operation.
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_find_folder(), mapitest_common_folder_open(), mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_CreateDeleteFolder | ( | struct mapitest * | mt) |
Test the CreateFolder (0x1c) and DeleteFolder (0x1d) operations
This is a simpler version of the CreateFolder test below.
This function:
mt | the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_CreateFolder | ( | struct mapitest * | mt) |
Test the CreateFolder (0x1c) operation
This function:
mt | the top-level mapitest structure |
References mapitest_deindent(), mapitest_indent(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_CreateFolderVariants | ( | struct mapitest * | mt) |
Test the CreateFolder (0x1c) operations
This tests different combinations of folder creation.
This function:
mt | the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_DeleteMessages | ( | struct mapitest * | mt) |
Test the DeleteMessages (0x1e) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), mt_common_tf_ctx::obj_store, and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_GetContentsTable | ( | struct mapitest * | mt) |
Test the GetContentsTable (0x5) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), mapitest_print_retval_fmt(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_GetHierarchyTable | ( | struct mapitest * | mt) |
Test the GetHierarchyTable (0x4) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), mapitest_print_retval_fmt(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_GetSearchCriteria | ( | struct mapitest * | mt) |
Test the GetSearchCriteria (0x31) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_HardDeleteMessages | ( | struct mapitest * | mt) |
Test the HardDeleteMessages (0x91) operation.
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_HardDeleteMessagesAndSubfolders | ( | struct mapitest * | mt) |
Test the HardDeleteMessagesAndSubfolder (0x92) operation.
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval(), mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_MoveCopyMessages | ( | struct mapitest * | mt) |
Test the MoveCopyMessages (0x33) operation.
This function:
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_MoveFolder | ( | struct mapitest * | mt) |
Test the MoveFolder (0x35) operation.
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_find_folder(), mapitest_common_folder_open(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_OpenFolder | ( | struct mapitest * | mt) |
Test the OpenFolder (0x2) operation
This function:
mt | the top-level mapitest structure |
References mapitest_deindent(), mapitest_indent(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfold_SetSearchCriteria | ( | struct mapitest * | mt) |
Test the SetSearchCriteria (0x30) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest::mapi_ctx, mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcfold_init().
bool mapitest_oxcfxics_CopyFolder | ( | struct mapitest * | mt) |
Test the FastTransferCopyFolder (0x4C), FastTransferGetBuffer (0x4E) and TellVersion (0x86) operations
This function:
References mapitest::info, mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_CopyMessages | ( | struct mapitest * | mt) |
Test the FastTransferCopyMessages (0x4B) and FastTransferGetBuffer (0x4E) operations
This function:
References mapitest::mapi_ctx, mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, mt_common_tf_ctx::obj_test_msg, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_CopyProperties | ( | struct mapitest * | mt) |
Test the FastTransferCopyProperties (0x69) and FastTransferSourceGetBuffer (0x4e) operations
This function:
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_CopyTo | ( | struct mapitest * | mt) |
Test the FastTransferCopyTo (0x4D) and FastTransferGetBuffer (0x4E) operations
This function:
References mapitest::mapi_ctx, mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, mt_common_tf_ctx::obj_test_msg, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_DestConfigure | ( | struct mapitest * | mt) |
Test the FastTransferDestinationConfigure (0x53), TellVersion (0x86) and FastTransferDestinationPutBuffer (0x54) operations
This function:
References mapitest::info, mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_GetLocalReplicaIds | ( | struct mapitest * | mt) |
Test the GetLocalReplicaIds (0x7f) operation
This function:
References mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, mt_common_tf_ctx::obj_store, and mapitest::session.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_SetLocalReplicaMidsetDeleted | ( | struct mapitest * | mt) |
Test the GetLocalReplicaId (0x7f) and SetLocalReplicaMidsetDeleted (0x93) operations
This function:
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_store, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_SyncConfigure | ( | struct mapitest * | mt) |
Test the RopSynchronizationConfigure (0x70), RopSynchronizationUploadStateStreamBegin (0x75), RopSynchronizationUploadStateStreamContinue (0x76), RopSynchronizationUploadStateStreamEnd (0x77) and RopSynchronizationGetTransferState (0x82) operations
This function:
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcfxics_SyncOpenCollector | ( | struct mapitest * | mt) |
Test the RopSynchronizationOpenCollector (0x7e), operation.
This function:
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print_retval_clean(), mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcfxics_init().
bool mapitest_oxcmsg_CreateMessage | ( | struct mapitest * | mt) |
Test the CreateMessage (0x6) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_print_retval(), mt_common_tf_ctx::obj_store, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_GetMessageStatus | ( | struct mapitest * | mt) |
Test the GetMessageStatus (0x1f) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_GetValidAttachments | ( | struct mapitest * | mt) |
Test the GetValidAttachments (0x52) and CreateAttach (0x23) operations
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval_clean(), mapitest_print_retval_fmt_clean(), OXCMSG_SETREADFLAGS, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_ModifyRecipients | ( | struct mapitest * | mt) |
Test the ModifyRecipients (0xe) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest_print_retval_fmt(), mapitest::mem_ctx, mapitest::profile, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_OpenEmbeddedMessage | ( | struct mapitest * | mt) |
Test the OpenEmbeddedMessage (0x46) and CreateAttach (0x23) operations
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_common_message_create(), mapitest_common_message_fill(), mapitest_print(), mapitest_print_SRowSet(), mt_common_tf_ctx::obj_store, OXCMSG_SETREADFLAGS, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_ReadRecipients | ( | struct mapitest * | mt) |
Test the ReadRecipients (0xf) operation
This function:
mt | point on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest_print_retval_fmt(), mapitest::mem_ctx, mapitest::profile, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_ReloadCachedInformation | ( | struct mapitest * | mt) |
Test the ReloadCachedInformation (0x10) operation
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_RemoveAllRecipients | ( | struct mapitest * | mt) |
Test the RemoveAllRecipients (0xd) operation
This function:
mt | point on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest_print_retval_fmt(), mapitest::mem_ctx, mapitest::profile, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_SaveChangesMessage | ( | struct mapitest * | mt) |
Test the SaveChangesMessage (0xc) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_SetMessageReadFlag | ( | struct mapitest * | mt) |
Test the SetMessageReadFlag (0x11) operation
This function:
Note: We can test either SetMessageReadFlag was effective by checking its old/new value with GetProps on PR_MESSAGE_FLAGS property.
mt | pointer on the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), mapitest::mem_ctx, mt_common_tf_ctx::obj_store, OXCMSG_SETREADFLAGS, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_SetMessageStatus | ( | struct mapitest * | mt) |
Test the GetMessageStatus (0x1f) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcmsg_init().
bool mapitest_oxcmsg_SetReadFlags | ( | struct mapitest * | mt) |
Test the SetReadFlags (0x66) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxcmsg_init().
bool mapitest_oxcnotif_RegisterNotification | ( | struct mapitest * | mt) |
Test the RegisterNotification (0x29) operation
This function:
mt | pointer on the top-level mapitest structure |
References cb(), mapitest_common_folder_open(), mapitest_print_retval(), and mapitest::session.
bool mapitest_oxcnotif_SyncOpenAdvisor | ( | struct mapitest * | mt) |
Test the SyncOpenAdvisor (0x83) and SetSyncNotificationGuid (0x88) operations
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_oxcnotif_init().
bool mapitest_oxcperm_GetPermissionsTable | ( | struct mapitest * | mt) |
Test the GetPermissionsTable (0x3e) operation
This function:
References mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcperm_init().
bool mapitest_oxcperm_ModifyPermissions | ( | struct mapitest * | mt) |
Test the ModifyPermissions (0x40) operation
This function:
References mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcperm_init().
bool mapitest_oxcprpt_CopyProps | ( | struct mapitest * | mt) |
Test the CopyProps (0x67) operation
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::info, mapitest_common_message_create(), mapitest_print(), mapitest_print_retval_step(), mapitest_print_retval_step_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_CopyTo | ( | struct mapitest * | mt) |
Test the CopyTo (0x39) operation
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest_print_retval_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_CopyToStream | ( | struct mapitest * | mt) |
Test the CopyToStream (0x3a) operation
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_genblob(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_DeleteProps | ( | struct mapitest * | mt) |
Test the DeleteProps (0xb) operation)
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_message_create(), mapitest_print(), mapitest_print_retval_step(), mapitest_print_retval_step_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_GetPropList | ( | struct mapitest * | mt) |
Test the GetPropList (0x9) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_GetProps | ( | struct mapitest * | mt) |
Test the GetProps (0x7) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_GetPropsAll | ( | struct mapitest * | mt) |
Test the GetPropsAll (0x8) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_NameId | ( | struct mapitest * | mt) |
Test the GetPropertyIdsFromNames (0x56), GetNamesFromPropertyIds (0x55) and QueryNamesFromIDs (0x5f) operations
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), mapitest::mem_ctx, NAMEDPROP_IDNUM, NAMEDPROP_NAME, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_NameId_PSMAPI | ( | struct mapitest * | mt) |
Test the GetPropertyIdsFromNames (0x56) and GetNamesFromPropertyIds (0x55) operations for the special case of the PS_MAPI namespace
This function:
Refer to MS-OXPROPS for the list of properties
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_NoReplicate | ( | struct mapitest * | mt) |
Test the SetPropertiesNoReplicate (0x79) and DeletePropertiesNoReplicate (0x7a) operations
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_step(), mapitest_print_retval_step_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_SetProps | ( | struct mapitest * | mt) |
Test the SetProps (0xa) operation
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_step_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_Stream | ( | struct mapitest * | mt) |
Test Stream operations. This test uses related stream operations: OpenStream (0x2b), SetStreamSize (0x2f), WriteStream (0x2d), CommitStream (0x5d), ReadStream (0x2c), SeekStream (0x2e), LockRegionStream (0x5b), UnlockRegionStream (0x5c), CloneStream (0x3b)
This function:
mt | pointer to the top-level mapitest structure |
References mapitest::info, mapitest_common_genblob(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcprpt_WriteAndCommitStream | ( | struct mapitest * | mt) |
Test WriteAndCommitStream (0x90) operation.
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_genblob(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest_print_retval_fmt_clean(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxcprpt_init().
bool mapitest_oxcstor_GetOwningServers | ( | struct mapitest * | mt) |
Test the GetOwningServers (0x42) operation
This function:
mt | the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_GetReceiveFolder | ( | struct mapitest * | mt) |
Test the GetReceiveFolder (0x27) operation
This function:
mt | the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval_clean(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_GetReceiveFolderTable | ( | struct mapitest * | mt) |
Test the GetReceiveFolderTable (0x68) operation
This function:
mt | the top-level mapitest structure |
References mapitest_print_retval(), mapitest_print_SRowSet(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_GetStoreState | ( | struct mapitest * | mt) |
Test the GetStoreState (0x7b) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_IsMailboxFolder | ( | struct mapitest * | mt) |
Test the IsMailboxFolder convenience function
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_Logon | ( | struct mapitest * | mt) |
Test the Logon (0xFE) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_LongTermId | ( | struct mapitest * | mt) |
Test the LongTermIdFromId (0x43) and IdFromLongTermId (0x44) operations
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_PublicFolderIsGhosted | ( | struct mapitest * | mt) |
Test the PublicFolderIsGhosted (0x45) operation
This function:
mt | the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxcstor_SetReceiveFolder | ( | struct mapitest * | mt) |
Test the SetReceiveFolder (0x26) operation
This function:
mt | the top-level mapitest structure |
References mapitest_print_retval_step(), mapitest_print_retval_step_fmt(), and mapitest::session.
Referenced by module_oxcstor_init().
bool mapitest_oxctable_Category | ( | struct mapitest * | mt) |
Test the SortTable (0x13), ExpandRow (0x59), CollapseRow(0x5a), GetCollapseState(0x6b) and SetCollapseState (0x6c) operations
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxctable_init().
bool mapitest_oxctable_CreateBookmark | ( | struct mapitest * | mt) |
Test the CreateBookmark (0x1b) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print_retval_fmt_clean(), and mapitest::mem_ctx.
Referenced by module_oxctable_init().
bool mapitest_oxctable_GetStatus | ( | struct mapitest * | mt) |
Test the GetStatus (0x16) operation
This function:
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), and mapitest_print_retval().
Referenced by module_oxctable_init().
bool mapitest_oxctable_QueryColumns | ( | struct mapitest * | mt) |
Test the QueryColumns (0x37) operation
This function:
Calls the QueryColumn operation
mt | pointer to the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval(), mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxctable_init().
bool mapitest_oxctable_QueryRows | ( | struct mapitest * | mt) |
Test the QueryRows (0x15) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval(), mapitest::mem_ctx, mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxctable_init().
bool mapitest_oxctable_Restrict | ( | struct mapitest * | mt) |
Test the Restrict (0x14) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print(), mapitest_print_retval(), mt_common_tf_ctx::obj_test_folder, and mapitest::priv.
Referenced by module_oxctable_init().
bool mapitest_oxctable_SeekRow | ( | struct mapitest * | mt) |
Test the SeekRow (0x18) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), and mapitest_print_retval_fmt().
Referenced by module_oxctable_init().
bool mapitest_oxctable_SeekRowApprox | ( | struct mapitest * | mt) |
Test the SeekRowApprox (0x1a) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), and mapitest_print_retval_fmt().
Referenced by module_oxctable_init().
bool mapitest_oxctable_SeekRowBookmark | ( | struct mapitest * | mt) |
Test the SeekRowBookmark (0x19) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print_retval(), mapitest_print_retval_fmt_clean(), and mapitest::mem_ctx.
Referenced by module_oxctable_init().
bool mapitest_oxctable_SetColumns | ( | struct mapitest * | mt) |
Test the SetColumns (0x12) operation
This function:
mt | pointer to the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print_retval(), and mapitest::mem_ctx.
Referenced by module_oxctable_init().
bool mapitest_oxomsg_AbortSubmit | ( | struct mapitest * | mt) |
Test the AbortSubmit (0x34) operation
This function:
Note: This operation may fail since it depends on how busy the server is when we submit the message. It is possible the message gets already processed before we have time to abort the message.
From preliminary tests, AbortSubmit returns MAPI_E_SUCCESS when we call SubmitMessage with SubmitFlags set to 0x2.
mt | pointer on the top-level mapitest structure |
References mapitest_common_message_create(), mapitest_common_message_delete_by_subject(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_AddressTypes | ( | struct mapitest * | mt) |
Test the AddressTypes (0x49) and OptionsData (0x6f) operations
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_GetTransportFolder | ( | struct mapitest * | mt) |
Test the GetTransportFolder (0x6d) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval_fmt(), mt_common_tf_ctx::obj_store, and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_SetSpooler | ( | struct mapitest * | mt) |
Test the SetSpooler (0x47) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_print_retval(), and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_SpoolerLockMessage | ( | struct mapitest * | mt) |
Test the SpoolerLockMessage (0x48) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_common_message_create(), mapitest_print(), mapitest_print_retval(), mapitest_print_retval_fmt(), and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_SubmitMessage | ( | struct mapitest * | mt) |
Test the SubmitMessage (0x32) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_message_create(), mapitest_common_message_delete_by_subject(), mapitest_print_retval(), and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_TransportNewMail | ( | struct mapitest * | mt) |
Test the TransportNewMail (0x51) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_cleanup(), mapitest_common_setup(), mapitest_print_retval_clean(), mt_common_tf_ctx::obj_store, mt_common_tf_ctx::obj_test_folder, mt_common_tf_ctx::obj_test_msg, and mapitest::priv.
Referenced by module_oxomsg_init().
bool mapitest_oxomsg_TransportSend | ( | struct mapitest * | mt) |
Test the TransportSend (0x4a) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_common_message_create(), mapitest_common_message_delete_by_subject(), mapitest_print(), mapitest_print_retval(), mapitest_print_SPropValue(), mapitest::mem_ctx, and mapitest::session.
Referenced by module_oxomsg_init().
bool mapitest_oxorule_GetRulesTable | ( | struct mapitest * | mt) |
Test the GetRulesTable (0x3f) operation
This function:
mt | pointer on the top-level mapitest structure |
References mapitest_common_folder_open(), mapitest_print_retval(), mt_common_tf_ctx::obj_store, and mapitest::session.
Referenced by module_oxorule_init().
void mapitest_print | ( | struct mapitest * | mt, |
const char * | format, | ||
... | |||
) |
Print a string in the stream
mt | pointer to the top-level mapitest structure |
format | the format string |
... | the format string parameters |
References mapitest_print_tab(), mapitest::stream, and mapitest::subunit_output.
Referenced by mapitest_common_cleanup(), mapitest_common_create_filled_test_folder(), mapitest_common_folder_open(), mapitest_common_message_delete_by_subject(), mapitest_errorchecks_simplemapi_c(), mapitest_lcid_langcode2langtag(), mapitest_lzxpress_validate_test_001(), mapitest_mapidump_freebusy(), mapitest_mapidump_task(), mapitest_noserver_lzfu(), mapitest_noserver_mapi_properties(), mapitest_noserver_proptagvalue(), mapitest_noserver_rtfcp(), mapitest_noserver_rtfcp_large(), mapitest_noserver_srowset(), mapitest_nspi_CompareMIds(), mapitest_nspi_GetPropList(), mapitest_nspi_ModProps(), mapitest_nspi_QueryColumns(), mapitest_nspi_ResolveNames(), mapitest_nspi_UpdateStat(), mapitest_oxcfold_CopyFolder(), mapitest_oxcfold_CreateDeleteFolder(), mapitest_oxcfold_CreateFolder(), mapitest_oxcfold_CreateFolderVariants(), mapitest_oxcfold_DeleteMessages(), mapitest_oxcfold_HardDeleteMessages(), mapitest_oxcfold_HardDeleteMessagesAndSubfolders(), mapitest_oxcfold_MoveCopyMessages(), mapitest_oxcfold_MoveFolder(), mapitest_oxcfold_OpenFolder(), mapitest_oxcfxics_CopyFolder(), mapitest_oxcfxics_CopyMessages(), mapitest_oxcfxics_CopyProperties(), mapitest_oxcfxics_CopyTo(), mapitest_oxcfxics_DestConfigure(), mapitest_oxcfxics_GetLocalReplicaIds(), mapitest_oxcfxics_SetLocalReplicaMidsetDeleted(), mapitest_oxcmsg_GetValidAttachments(), mapitest_oxcmsg_ModifyRecipients(), mapitest_oxcmsg_OpenEmbeddedMessage(), mapitest_oxcmsg_ReadRecipients(), mapitest_oxcmsg_RemoveAllRecipients(), mapitest_oxcmsg_SetMessageReadFlag(), mapitest_oxcmsg_SetMessageStatus(), mapitest_oxcmsg_SetReadFlags(), mapitest_oxcprpt_CopyProps(), mapitest_oxcprpt_CopyTo(), mapitest_oxcprpt_CopyToStream(), mapitest_oxcprpt_DeleteProps(), mapitest_oxcprpt_NameId(), mapitest_oxcprpt_NameId_PSMAPI(), mapitest_oxcprpt_NoReplicate(), mapitest_oxcprpt_SetProps(), mapitest_oxcprpt_Stream(), mapitest_oxcprpt_WriteAndCommitStream(), mapitest_oxcstor_GetOwningServers(), mapitest_oxcstor_GetReceiveFolder(), mapitest_oxcstor_IsMailboxFolder(), mapitest_oxcstor_LongTermId(), mapitest_oxcstor_PublicFolderIsGhosted(), mapitest_oxctable_Category(), mapitest_oxctable_GetStatus(), mapitest_oxctable_QueryColumns(), mapitest_oxctable_QueryRows(), mapitest_oxctable_Restrict(), mapitest_oxomsg_AddressTypes(), mapitest_oxomsg_SpoolerLockMessage(), mapitest_oxomsg_TransportSend(), mapitest_print_headers_info(), mapitest_print_headers_server_info(), mapitest_print_module_title_start(), mapitest_print_retval(), mapitest_print_retval_clean(), mapitest_print_retval_fmt(), mapitest_print_retval_fmt_clean(), mapitest_print_retval_step(), mapitest_print_retval_step_fmt(), mapitest_print_test_result(), mapitest_print_test_title_start(), and mapitest_stat_dump().
void mapitest_print_headers | ( | struct mapitest * | mt) |
Print mapitest report headers
mt | pointer to the top-level mapitest structure |
References mapitest_deindent(), mapitest_indent(), mapitest_print_headers_info(), mapitest_print_headers_server_info(), mapitest_print_newline(), mapitest::no_server, and mapitest::subunit_output.
Referenced by main().
void mapitest_print_headers_info | ( | struct mapitest * | mt) |
Print mapitest report headers information
mt | pointer to the top-level mapitest structure |
References mapitest::confidential, mapitest_deindent(), mapitest_indent(), mapitest_print(), and mapitest_print_newline().
Referenced by mapitest_print_headers().
void mapitest_print_headers_server_info | ( | struct mapitest * | mt) |
Print a report of the Exchange server and account information
mt | pointer to the top-level mapitest structure |
References mapitest::confidential, mapitest::info, mapitest_deindent(), mapitest_indent(), mapitest_print(), mapitest_print_newline(), mapitest::online, mapitest::org, and mapitest::org_unit.
Referenced by mapitest_print_headers().
void mapitest_print_line | ( | struct mapitest * | mt, |
int | len, | ||
char | delim | ||
) |
Print a line using a delimiter
mt | pointer to the top-level mapitest structure |
len | the length of the line to print |
delim | the line delimiter |
References mapitest_print_newline(), mapitest::stream, and mapitest::subunit_output.
Referenced by mapitest_print_module_title_end(), mapitest_print_module_title_start(), mapitest_print_test_result(), mapitest_print_test_title_end(), mapitest_print_test_title_start(), and mapitest_underline().
void mapitest_print_module_title_end | ( | struct mapitest * | mt) |
Print the content at the end of the module
mt | pointer to the top-level mapitest structure |
References mapitest_deindent(), mapitest_print_line(), mapitest_print_newline(), and mapitest_print_tab().
Referenced by mapitest_run_all().
void mapitest_print_module_title_start | ( | struct mapitest * | mt, |
const char * | str | ||
) |
Print the module title
mt | pointer to the top-level mapitest structure |
str | the module title string |
References mapitest_indent(), mapitest_print(), mapitest_print_line(), mapitest_print_tab(), and mapitest::mem_ctx.
Referenced by mapitest_run_all().
void mapitest_print_newline | ( | struct mapitest * | mt, |
int | count | ||
) |
Print newline characters
mt | pointer to the top-level mapitest structure |
count | number of newline characters to print |
References mapitest::stream, and mapitest::subunit_output.
Referenced by mapitest_print_headers(), mapitest_print_headers_info(), mapitest_print_headers_server_info(), mapitest_print_line(), mapitest_print_module_title_end(), and mapitest_print_test_result().
void mapitest_print_PAB_entry | ( | struct mapitest * | mt, |
struct PropertyRow_r * | aRow | ||
) |
Output a row of the public address book.
mt | pointer to the top-level mapitest structure |
aRow | one row of the public address book (Global Address List) |
This function is usually used with GetGALTable, which can obtain several rows at once - you'll need to iterate over the rows.
The SRow is assumed to contain entries for PR_ADDRTYPE_UNICODE, PR_DISPLAY_NAME_UNICODE, PR_EMAIL_ADDRESS_UNICODE and PR_ACCOUNT_UNICODE.
References mapitest::subunit_output.
Referenced by mapitest_nspi_GetGALTable().
void mapitest_print_retval | ( | struct mapitest * | mt, |
char * | name | ||
) |
Print mapitest return value
mt | pointer to the top-level mapitest structure |
name | the test name |
References mapitest::color, mapitest_print(), and mapitest::subunit_output.
Referenced by mapitest_common_create_filled_test_folder(), mapitest_common_message_create(), mapitest_common_message_delete_by_subject(), mapitest_common_message_fill(), mapitest_common_setup(), mapitest_noserver_lzfu(), mapitest_noserver_rtfcp(), mapitest_nspi_GetPropList(), mapitest_nspi_GetProps(), mapitest_nspi_UpdateStat(), mapitest_oxcfold_CopyFolder(), mapitest_oxcfold_CreateDeleteFolder(), mapitest_oxcfold_CreateFolder(), mapitest_oxcfold_GetContentsTable(), mapitest_oxcfold_GetHierarchyTable(), mapitest_oxcfold_GetSearchCriteria(), mapitest_oxcfold_HardDeleteMessages(), mapitest_oxcfold_HardDeleteMessagesAndSubfolders(), mapitest_oxcfold_MoveCopyMessages(), mapitest_oxcfold_MoveFolder(), mapitest_oxcfold_OpenFolder(), mapitest_oxcfold_SetSearchCriteria(), mapitest_oxcfxics_GetLocalReplicaIds(), mapitest_oxcmsg_CreateMessage(), mapitest_oxcmsg_ModifyRecipients(), mapitest_oxcmsg_ReadRecipients(), mapitest_oxcmsg_ReloadCachedInformation(), mapitest_oxcmsg_RemoveAllRecipients(), mapitest_oxcmsg_SaveChangesMessage(), mapitest_oxcmsg_SetMessageReadFlag(), mapitest_oxcmsg_SetMessageStatus(), mapitest_oxcnotif_RegisterNotification(), mapitest_oxcperm_GetPermissionsTable(), mapitest_oxcperm_ModifyPermissions(), mapitest_oxcprpt_CopyTo(), mapitest_oxcprpt_CopyToStream(), mapitest_oxcprpt_GetPropList(), mapitest_oxcprpt_GetProps(), mapitest_oxcprpt_GetPropsAll(), mapitest_oxcprpt_NameId(), mapitest_oxcprpt_Stream(), mapitest_oxcprpt_WriteAndCommitStream(), mapitest_oxcstor_GetOwningServers(), mapitest_oxcstor_GetReceiveFolderTable(), mapitest_oxcstor_GetStoreState(), mapitest_oxcstor_IsMailboxFolder(), mapitest_oxcstor_Logon(), mapitest_oxcstor_LongTermId(), mapitest_oxcstor_PublicFolderIsGhosted(), mapitest_oxctable_Category(), mapitest_oxctable_GetStatus(), mapitest_oxctable_QueryColumns(), mapitest_oxctable_QueryRows(), mapitest_oxctable_Restrict(), mapitest_oxctable_SeekRowBookmark(), mapitest_oxctable_SetColumns(), mapitest_oxomsg_AbortSubmit(), mapitest_oxomsg_AddressTypes(), mapitest_oxomsg_SetSpooler(), mapitest_oxomsg_SpoolerLockMessage(), mapitest_oxomsg_SubmitMessage(), mapitest_oxomsg_TransportSend(), and mapitest_oxorule_GetRulesTable().
void mapitest_print_retval_clean | ( | struct mapitest * | mt, |
char * | name, | ||
enum MAPISTATUS | retval | ||
) |
Print mapitest return value
This version takes an explicit return status value
mt | pointer to the top-level mapitest structure |
name | the test name |
retval | the return value to output |
References mapitest::color, mapitest_print(), and mapitest::subunit_output.
Referenced by mapitest_noserver_rtfcp_large(), mapitest_nspi_CompareMIds(), mapitest_nspi_DNToMId(), mapitest_nspi_GetGALTable(), mapitest_nspi_GetIDsFromNames(), mapitest_nspi_GetMatches(), mapitest_nspi_GetNamesFromIDs(), mapitest_nspi_GetProps(), mapitest_nspi_GetSpecialTable(), mapitest_nspi_GetTemplateInfo(), mapitest_nspi_ModLinkAtt(), mapitest_nspi_ModProps(), mapitest_nspi_QueryColumns(), mapitest_nspi_QueryRows(), mapitest_nspi_ResolveNames(), mapitest_nspi_ResortRestriction(), mapitest_nspi_SeekEntries(), mapitest_oxcfold_CreateFolderVariants(), mapitest_oxcfold_DeleteMessages(), mapitest_oxcfxics_CopyFolder(), mapitest_oxcfxics_CopyMessages(), mapitest_oxcfxics_CopyProperties(), mapitest_oxcfxics_CopyTo(), mapitest_oxcfxics_DestConfigure(), mapitest_oxcfxics_SetLocalReplicaMidsetDeleted(), mapitest_oxcfxics_SyncConfigure(), mapitest_oxcfxics_SyncOpenCollector(), mapitest_oxcmsg_GetMessageStatus(), mapitest_oxcmsg_GetValidAttachments(), mapitest_oxcmsg_ModifyRecipients(), mapitest_oxcmsg_ReadRecipients(), mapitest_oxcmsg_RemoveAllRecipients(), mapitest_oxcmsg_SetMessageStatus(), mapitest_oxcmsg_SetReadFlags(), mapitest_oxcnotif_SyncOpenAdvisor(), mapitest_oxcprpt_CopyTo(), mapitest_oxcprpt_NameId_PSMAPI(), mapitest_oxcprpt_WriteAndCommitStream(), mapitest_oxcstor_GetReceiveFolder(), and mapitest_oxomsg_TransportNewMail().
void mapitest_print_retval_fmt | ( | struct mapitest * | mt, |
char * | name, | ||
const char * | format, | ||
... | |||
) |
Print mapitest return value with additional format string
mt | pointer to the top-level mapitest structure |
name | the test name |
format | the format string |
... | the format string parameters |
References mapitest::color, and mapitest_print().
Referenced by mapitest_lzxpress_validate_test_001(), mapitest_oxcfold_CreateFolder(), mapitest_oxcfold_GetContentsTable(), mapitest_oxcfold_GetHierarchyTable(), mapitest_oxcfold_OpenFolder(), mapitest_oxcmsg_ModifyRecipients(), mapitest_oxcmsg_ReadRecipients(), mapitest_oxcmsg_RemoveAllRecipients(), mapitest_oxcmsg_SetMessageReadFlag(), mapitest_oxcprpt_CopyTo(), mapitest_oxcprpt_CopyToStream(), mapitest_oxcprpt_NameId(), mapitest_oxcprpt_Stream(), mapitest_oxctable_SeekRow(), mapitest_oxctable_SeekRowApprox(), mapitest_oxomsg_GetTransportFolder(), and mapitest_oxomsg_SpoolerLockMessage().
void mapitest_print_retval_fmt_clean | ( | struct mapitest * | mt, |
char * | name, | ||
enum MAPISTATUS | retval, | ||
const char * | format, | ||
... | |||
) |
Print mapitest return value with additional format string
mt | pointer to the top-level mapitest structure |
name | the test name |
retval | the return value to output |
format | the format string |
... | the format string parameters |
References mapitest::color, and mapitest_print().
Referenced by mapitest_oxcmsg_GetValidAttachments(), mapitest_oxcprpt_WriteAndCommitStream(), mapitest_oxctable_CreateBookmark(), and mapitest_oxctable_SeekRowBookmark().
void mapitest_print_retval_step | ( | struct mapitest * | mt, |
char * | step, | ||
char * | name, | ||
enum MAPISTATUS | retval | ||
) |
Print mapitest return value for a given step
mt | pointer to the top-level mapitest structure |
step | the test step |
name | the test name |
retval | the return value |
References mapitest::color, and mapitest_print().
Referenced by mapitest_lzxpress_validate_test_001(), mapitest_oxcprpt_CopyProps(), mapitest_oxcprpt_DeleteProps(), mapitest_oxcprpt_NoReplicate(), and mapitest_oxcstor_SetReceiveFolder().
void mapitest_print_retval_step_fmt | ( | struct mapitest * | mt, |
char * | step, | ||
char * | name, | ||
const char * | format, | ||
... | |||
) |
Print mapitest return value for a given step with additional format string
mt | pointer to the top-level mapitest structure |
step | the test step |
name | the test name |
format | the format string |
... | the format string parameters |
References mapitest::color, and mapitest_print().
Referenced by mapitest_oxcprpt_CopyProps(), mapitest_oxcprpt_DeleteProps(), mapitest_oxcprpt_NoReplicate(), mapitest_oxcprpt_SetProps(), and mapitest_oxcstor_SetReceiveFolder().
void mapitest_print_SPropValue | ( | struct mapitest * | mt, |
struct SPropValue | lpProp, | ||
const char * | sep | ||
) |
Output a row of the public address book.
mt | pointer to the top-level mapitest structure |
lpProp | the property to print |
sep | a separator / spacer to insert in front of the label |
References mapitest::subunit_output.
Referenced by mapitest_oxomsg_TransportSend().
void mapitest_print_SRowSet | ( | struct mapitest * | mt, |
struct SRowSet * | rowset, | ||
const char * | sep | ||
) |
Output a set of rows from a table.
mt | pointer to the top-level mapitest structure |
rowset | the rows to output |
sep | a separator / spacer to insert in front of the label |
References mapitest::subunit_output.
Referenced by mapitest_oxcmsg_OpenEmbeddedMessage(), and mapitest_oxcstor_GetReceiveFolderTable().
void mapitest_print_tab | ( | struct mapitest * | mt) |
Print tabulations given the internal counter
mt | pointer to the top-level mapitest structure |
References mapitest::stream.
Referenced by mapitest_print(), mapitest_print_module_title_end(), mapitest_print_module_title_start(), mapitest_print_test_result(), mapitest_print_test_title_end(), mapitest_print_test_title_start(), and mapitest_underline().
void mapitest_print_test_result | ( | struct mapitest * | mt, |
char * | name, | ||
bool | ret | ||
) |
Print mapitest test result
mt | pointer to the top-level mapitest structure |
name | the test name |
ret | boolean value with the test result |
References mapitest_print(), mapitest_print_line(), mapitest_print_newline(), mapitest_print_tab(), and mapitest::subunit_output.
void mapitest_print_test_title_end | ( | struct mapitest * | mt) |
Write the content at the end of a test
mt | pointer to the top-level mapitest structure |
References mapitest_deindent(), mapitest_print_line(), and mapitest_print_tab().
Referenced by mapitest_stat_dump().
void mapitest_print_test_title_start | ( | struct mapitest * | mt, |
const char * | str | ||
) |
print the test title
mt | pointer to the top-level mapitest structure |
str | the test title |
References mapitest_indent(), mapitest_print(), mapitest_print_line(), mapitest_print_tab(), mapitest::mem_ctx, and mapitest::subunit_output.
void mapitest_print_title | ( | struct mapitest * | mt, |
const char * | str, | ||
char | delim | ||
) |
Private general routine used to print a title
Avoid code redundancy over the API
mt | pointer to the top-level mapitest structure |
str | the title |
delim | the underline delimiter |
References mapitest_indent(), mapitest_underline(), and mapitest::subunit_output.
Referenced by mapitest_stat_dump().
uint32_t mapitest_register_modules | ( | struct mapitest * | ) |
References module_errorchecks_init(), module_lcid_init(), module_lzxpress_init(), module_mapidump_init(), module_noserver_init(), module_nspi_init(), module_oxcfold_init(), module_oxcfxics_init(), module_oxcmsg_init(), module_oxcnotif_init(), module_oxcperm_init(), module_oxcprpt_init(), module_oxcstor_init(), module_oxctable_init(), module_oxomsg_init(), and module_oxorule_init().
Referenced by main().
void mapitest_run_all | ( | struct mapitest * | mt) |
all tests from all suites
mt | the top-level mapitest structure |
References mapitest::mapi_suite, mapitest_print_module_title_end(), mapitest_print_module_title_start(), mapitest_suite::name, mapitest_suite::next, mapitest_suite::online, mapitest::online, and mapitest::session.
Referenced by main().
bool mapitest_run_test | ( | struct mapitest * | mt, |
const char * | name | ||
) |
run a specific test from a particular suite
mt | the top-level mapitest structure |
name | the mapitest test name |
References mapitest::mapi_suite, mapitest_suite_run_test(), mapitest_test::name, mapitest_test::next, mapitest_suite::next, mapitest_suite::online, mapitest::online, mapitest::session, and mapitest_suite::tests.
Referenced by main().
uint32_t mapitest_stat_add_result | ( | struct mapitest_suite * | suite, |
const char * | name, | ||
enum TestResult | testresult | ||
) |
Add test result to the suite statistic parameter
suite | the suite container |
name | the test name |
testresult | the test result |
References mapitest_stat::enabled, ExpectedFailure, Fail, mapitest_stat::failure, mapitest_stat::failure_info, mapitest_unit::name, Pass, mapitest_unit::reason, mapitest_suite::stat, mapitest_stat::success, UnexpectedPass, and mapitest_stat::x_fail.
uint32_t mapitest_stat_add_skipped_test | ( | struct mapitest_suite * | suite, |
const char * | name, | ||
enum TestApplicabilityFlags | flags | ||
) |
Add a skipped test to the suite statistic parameters
suite | the suite container |
name | the test name |
flags | flags to indicate the reason why the test was skipped |
References mapitest_stat::enabled, mapitest_unit::name, mapitest_stat::skip_info, mapitest_stat::skipped, and mapitest_suite::stat.
int32_t mapitest_stat_dump | ( | struct mapitest * | mt) |
Dump mapitest statistics about test failures
mt | the global mapitest structure |
References mapitest_stat::enabled, mapitest_stat::failure, mapitest_stat::failure_info, mapitest::mapi_suite, mapitest_print(), mapitest_print_test_title_end(), mapitest_print_title(), mapitest_unit::name, mapitest_suite::name, mapitest_unit::next, mapitest_suite::next, mapitest_unit::reason, mapitest_stat::skip_info, mapitest_stat::skipped, mapitest_suite::stat, mapitest_stat::success, and mapitest_stat::x_fail.
Referenced by main().
struct mapitest_stat* mapitest_stat_init | ( | TALLOC_CTX * | mem_ctx) |
Initialize the mapitest statistic structure
mem_ctx | memory allocation context |
References mapitest_stat::enabled, mapitest_stat::failure, mapitest_stat::failure_info, mapitest_stat::skip_info, mapitest_stat::skipped, mapitest_stat::success, and mapitest_stat::x_fail.
Referenced by mapitest_suite_init().
uint32_t mapitest_suite_add_test | ( | struct mapitest_suite * | , |
const char * | name, | ||
const char * | description, | ||
bool(*)(struct mapitest *) | |||
) |
uint32_t mapitest_suite_add_test_flagged | ( | struct mapitest_suite * | suite, |
const char * | name, | ||
const char * | description, | ||
bool(*)(struct mapitest *test) | run, | ||
enum TestApplicabilityFlags | applicability | ||
) |
add a test to the mapitest suite with description and flags
This is very similar to mapitest_suite_add_test(), except it allows a test to have special applicability (e.g. to only run when a particular server configuration is available).
suite | pointer to the parent test suite |
name | the test name |
description | the test description |
run | the test function |
applicability | a set of applicability flags |
References mapitest_test::description, mapitest_test::flags, mapitest_test::fn, mapitest_test::name, mapitest_suite::name, mapitest_test::next, and mapitest_suite::tests.
Referenced by mapitest_suite_add_test(), module_lzxpress_init(), module_oxcmsg_init(), module_oxcnotif_init(), module_oxcprpt_init(), module_oxcstor_init(), and module_oxctable_init().
struct mapitest_suite* mapitest_suite_find | ( | struct mapitest * | mt, |
const char * | name | ||
) |
Find a suite given its name
mt | top-level mapitest structure |
name | the suite name to be searched |
References mapitest::mapi_suite, mapitest_suite::name, and mapitest_suite::next.
__BEGIN_DECLS struct mapitest_suite* mapitest_suite_init | ( | struct mapitest * | mt, |
const char * | name, | ||
const char * | description, | ||
bool | online | ||
) |
Initialize a mapitest suite
mt | the top-level mapitest structure |
name | the suite name |
description | the suite description |
online | whether this suite requires online (server) access |
References mapitest_suite::description, mapitest_stat_init(), mapitest::mem_ctx, mapitest_suite::name, mapitest_suite::online, mapitest_suite::stat, and mapitest_suite::tests.
Referenced by module_errorchecks_init(), module_lcid_init(), module_lzxpress_init(), module_mapidump_init(), module_noserver_init(), module_nspi_init(), module_oxcfold_init(), module_oxcfxics_init(), module_oxcmsg_init(), module_oxcnotif_init(), module_oxcperm_init(), module_oxcprpt_init(), module_oxcstor_init(), module_oxctable_init(), module_oxomsg_init(), and module_oxorule_init().
uint32_t mapitest_suite_register | ( | struct mapitest * | mt, |
struct mapitest_suite * | suite | ||
) |
Register a mapitest suite
mt | the top-level mapitest structure |
suite | the mapitest suite we want to add |
References mapitest::mapi_suite, mapitest::mem_ctx, mapitest_suite::name, and mapitest_suite::next.
Referenced by module_errorchecks_init(), module_lcid_init(), module_lzxpress_init(), module_mapidump_init(), module_noserver_init(), module_nspi_init(), module_oxcfold_init(), module_oxcfxics_init(), module_oxcmsg_init(), module_oxcnotif_init(), module_oxcperm_init(), module_oxcprpt_init(), module_oxcstor_init(), module_oxctable_init(), module_oxomsg_init(), and module_oxorule_init().
bool mapitest_suite_run_test | ( | struct mapitest * | mt, |
struct mapitest_suite * | suite, | ||
const char * | name | ||
) |
run a test from a suite given its name
mt | pointer on the top-level mapitest structure |
suite | pointer on the mapitest suite |
name | the name of the test to be run |
References mapitest_test::name, mapitest_test::next, and mapitest_suite::tests.
Referenced by mapitest_run_test().
void mapitest_underline | ( | struct mapitest * | mt, |
const char * | str, | ||
char | delim | ||
) |
Underline a string
mt | pointer to the top-level mapitest structure |
str | string to underline |
delim | the line delimiter |
References mapitest_print_line(), mapitest_print_tab(), and mapitest::stream.
Referenced by mapitest_print_title().
uint32_t module_errorchecks_init | ( | struct mapitest * | mt) |
Initialise the error / sanity-check test suite
mt | pointer to the top-level mapitest structure |
References mapitest_errorchecks_simplemapi_c(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_lcid_init | ( | struct mapitest * | mt) |
Initialise the language code / ID test suite
mt | pointer to the top-level mapitest structure |
References mapitest_lcid_langcode2langtag(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_lzxpress_init | ( | struct mapitest * | mt) |
Initialise the language code / ID test suite
mt | pointer to the top-level mapitest structure |
References ExpectedFail, mapitest_lzxpress_validate_test_001(), mapitest_suite_add_test_flagged(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_mapidump_init | ( | struct mapitest * | mt) |
Initialise the mapidump test suite
mt | pointer to the top-level mapitest structure |
References mapitest_mapidump_appointment(), mapitest_mapidump_contact(), mapitest_mapidump_foldercopied(), mapitest_mapidump_foldercreated(), mapitest_mapidump_folderdeleted(), mapitest_mapidump_foldermoved(), mapitest_mapidump_freebusy(), mapitest_mapidump_message(), mapitest_mapidump_messagecopied(), mapitest_mapidump_messagecreated(), mapitest_mapidump_messagedeleted(), mapitest_mapidump_messagemodified(), mapitest_mapidump_messagemoved(), mapitest_mapidump_newmail(), mapitest_mapidump_note(), mapitest_mapidump_pabentry(), mapitest_mapidump_recipients(), mapitest_mapidump_sproptagarray(), mapitest_mapidump_spropvalue(), mapitest_mapidump_srowset(), mapitest_mapidump_task(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_noserver_init | ( | struct mapitest * | mt) |
Return the no server test suite
mt | pointer on the top-level mapitest structure |
References mapitest_noserver_lzfu(), mapitest_noserver_mapi_properties(), mapitest_noserver_properties(), mapitest_noserver_proptagvalue(), mapitest_noserver_rtfcp(), mapitest_noserver_rtfcp_large(), mapitest_noserver_srowset(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_nspi_init | ( | struct mapitest * | mt) |
Register the NSPI test suite
mt | pointer on the top-level mapitest structure |
References mapitest_nspi_CompareMIds(), mapitest_nspi_DNToMId(), mapitest_nspi_GetGALTable(), mapitest_nspi_GetIDsFromNames(), mapitest_nspi_GetMatches(), mapitest_nspi_GetNamesFromIDs(), mapitest_nspi_GetPropList(), mapitest_nspi_GetProps(), mapitest_nspi_GetSpecialTable(), mapitest_nspi_GetTemplateInfo(), mapitest_nspi_ModLinkAtt(), mapitest_nspi_ModProps(), mapitest_nspi_QueryColumns(), mapitest_nspi_QueryRows(), mapitest_nspi_ResolveNames(), mapitest_nspi_ResortRestriction(), mapitest_nspi_SeekEntries(), mapitest_nspi_UpdateStat(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_oxcfold_init | ( | struct mapitest * | mt) |
Register the Folder Object Protocol test suite
mt | the top-level mapitest structure |
References mapitest_oxcfold_CopyFolder(), mapitest_oxcfold_CreateDeleteFolder(), mapitest_oxcfold_CreateFolder(), mapitest_oxcfold_CreateFolderVariants(), mapitest_oxcfold_DeleteMessages(), mapitest_oxcfold_GetContentsTable(), mapitest_oxcfold_GetHierarchyTable(), mapitest_oxcfold_GetSearchCriteria(), mapitest_oxcfold_HardDeleteMessages(), mapitest_oxcfold_HardDeleteMessagesAndSubfolders(), mapitest_oxcfold_MoveCopyMessages(), mapitest_oxcfold_MoveFolder(), mapitest_oxcfold_OpenFolder(), mapitest_oxcfold_SetSearchCriteria(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_oxcfxics_init | ( | struct mapitest * | mt) |
Register the Bulk Data Transfer Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxcfxics_CopyFolder(), mapitest_oxcfxics_CopyMessages(), mapitest_oxcfxics_CopyProperties(), mapitest_oxcfxics_CopyTo(), mapitest_oxcfxics_DestConfigure(), mapitest_oxcfxics_GetLocalReplicaIds(), mapitest_oxcfxics_SetLocalReplicaMidsetDeleted(), mapitest_oxcfxics_SyncConfigure(), mapitest_oxcfxics_SyncOpenCollector(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_oxcmsg_init | ( | struct mapitest * | mt) |
Register the Message and Attachment Object Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxcmsg_CreateMessage(), mapitest_oxcmsg_GetMessageStatus(), mapitest_oxcmsg_GetValidAttachments(), mapitest_oxcmsg_ModifyRecipients(), mapitest_oxcmsg_OpenEmbeddedMessage(), mapitest_oxcmsg_ReadRecipients(), mapitest_oxcmsg_ReloadCachedInformation(), mapitest_oxcmsg_RemoveAllRecipients(), mapitest_oxcmsg_SaveChangesMessage(), mapitest_oxcmsg_SetMessageReadFlag(), mapitest_oxcmsg_SetMessageStatus(), mapitest_oxcmsg_SetReadFlags(), mapitest_suite_add_test(), mapitest_suite_add_test_flagged(), mapitest_suite_init(), mapitest_suite_register(), and NotInExchange2010.
Referenced by mapitest_register_modules().
uint32_t module_oxcnotif_init | ( | struct mapitest * | mt) |
Register the Core Notification Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxcnotif_SyncOpenAdvisor(), mapitest_suite_add_test_flagged(), mapitest_suite_init(), mapitest_suite_register(), and NotInExchange2010.
Referenced by mapitest_register_modules().
uint32_t module_oxcperm_init | ( | struct mapitest * | mt) |
Register the Permissions Protocol test suite
mt | pointer to the top-level mapitest structure |
References mapitest_oxcperm_GetPermissionsTable(), mapitest_oxcperm_ModifyPermissions(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_oxcprpt_init | ( | struct mapitest * | mt) |
Register the Property and Stream Object Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxcprpt_CopyProps(), mapitest_oxcprpt_CopyTo(), mapitest_oxcprpt_CopyToStream(), mapitest_oxcprpt_DeleteProps(), mapitest_oxcprpt_GetPropList(), mapitest_oxcprpt_GetProps(), mapitest_oxcprpt_GetPropsAll(), mapitest_oxcprpt_NameId(), mapitest_oxcprpt_NameId_PSMAPI(), mapitest_oxcprpt_NoReplicate(), mapitest_oxcprpt_SetProps(), mapitest_oxcprpt_Stream(), mapitest_oxcprpt_WriteAndCommitStream(), mapitest_suite_add_test(), mapitest_suite_add_test_flagged(), mapitest_suite_init(), mapitest_suite_register(), NotInExchange2010, and NotInExchange2010SP0.
Referenced by mapitest_register_modules().
uint32_t module_oxcstor_init | ( | struct mapitest * | mt) |
Register the Store Object Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxcstor_GetOwningServers(), mapitest_oxcstor_GetReceiveFolder(), mapitest_oxcstor_GetReceiveFolderTable(), mapitest_oxcstor_GetStoreState(), mapitest_oxcstor_IsMailboxFolder(), mapitest_oxcstor_Logon(), mapitest_oxcstor_LongTermId(), mapitest_oxcstor_PublicFolderIsGhosted(), mapitest_oxcstor_SetReceiveFolder(), mapitest_suite_add_test(), mapitest_suite_add_test_flagged(), mapitest_suite_init(), mapitest_suite_register(), and NotInExchange2010.
Referenced by mapitest_register_modules().
uint32_t module_oxctable_init | ( | struct mapitest * | mt) |
Register the Table Object Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxctable_Category(), mapitest_oxctable_CreateBookmark(), mapitest_oxctable_GetStatus(), mapitest_oxctable_QueryColumns(), mapitest_oxctable_QueryRows(), mapitest_oxctable_Restrict(), mapitest_oxctable_SeekRow(), mapitest_oxctable_SeekRowApprox(), mapitest_oxctable_SeekRowBookmark(), mapitest_oxctable_SetColumns(), mapitest_suite_add_test(), mapitest_suite_add_test_flagged(), mapitest_suite_init(), mapitest_suite_register(), and NotInExchange2010.
Referenced by mapitest_register_modules().
uint32_t module_oxomsg_init | ( | struct mapitest * | mt) |
Register the E-mail Object Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxomsg_AbortSubmit(), mapitest_oxomsg_AddressTypes(), mapitest_oxomsg_GetTransportFolder(), mapitest_oxomsg_SetSpooler(), mapitest_oxomsg_SpoolerLockMessage(), mapitest_oxomsg_SubmitMessage(), mapitest_oxomsg_TransportNewMail(), mapitest_oxomsg_TransportSend(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
uint32_t module_oxorule_init | ( | struct mapitest * | mt) |
Register the E-Mail Rules Protocol test suite
mt | pointer on the top-level mapitest structure |
References mapitest_oxorule_GetRulesTable(), mapitest_suite_add_test(), mapitest_suite_init(), and mapitest_suite_register().
Referenced by mapitest_register_modules().
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |