1 #ifndef APITESTS_MSGTRACE_H 2 #define APITESTS_MSGTRACE_H 57 #define COMPARE_CACHE(msg_chain) compare_cache(&default_cache, __FILE__, __LINE__, msg_chain) 58 #define TRACE_CACHE() trace_cache(&default_cache, __FILE__, __LINE__) 59 #define EMPTY_CACHE() empty_message_cache(&default_cache); 60 #define RECORD_MESSAGE(...) record_message(&default_cache, ##__VA_ARGS__); 62 #define COMPARE_CACHE_(cache, msg_chain) compare_cache(cache, __FILE__, __LINE__, msg_chain) 63 #define TRACE_CACHE_(cache) trace_cache(cache, __FILE__, __LINE__) 64 #define EMPTY_CACHE_(cache) empty_message_cache(cache); 66 #define EXPECT_QUEUE_STATUS(expected, notexpected) \ 68 DWORD status = HIWORD(GetQueueStatus(QS_ALLEVENTS)); \ 69 ok(((status) & (expected))== (expected),"wrong queue status. expected %li, and got %li\n", (DWORD)(expected), status); \ 71 ok((status & (notexpected))!=(notexpected), "wrong queue status. got non expected %li\n", (DWORD)(notexpected)); \
void compare_cache(MSG_CACHE *cache, const char *file, int line, MSG_ENTRY *msg_chain)
static BOOL IseKeyMsg(UINT msg)
struct _MSG_ENTRY MSG_ENTRY
void trace_cache(MSG_CACHE *cache, const char *file, int line)
void record_message(MSG_CACHE *cache, int iwnd, UINT message, MSG_TYPE type, int param1, int param2)
void empty_message_cache(MSG_CACHE *cache)
struct _MSG_CACHE MSG_CACHE
static BOOL IsDWmMsg(UINT msg)
MSG_ENTRY last_post_message
GLuint GLuint GLsizei GLenum type
MSG_ENTRY message_cache[100]