1 /* Message Sequence Testing Code
3 * Copyright (C) 2007 James Hawkins
4 * Copyright (C) 2007 Lei Zhang
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "wine/test.h"
25 /* undocumented SWP flags - from SDK 3.1 */
26 #define SWP_NOCLIENTSIZE 0x0800
27 #define SWP_NOCLIENTMOVE 0x1000
46 UINT message; /* the WM_* code */
47 msg_flags_t flags; /* message props */
48 WPARAM wParam; /* expected value of wParam */
49 LPARAM lParam; /* expected value of lParam */
50 UINT id; /* id of the window */
57 struct message *sequence;
60 void add_message(struct msg_sequence **seq, int sequence_index,
61 const struct message *msg);
62 void flush_sequence(struct msg_sequence **seg, int sequence_index);
63 void flush_sequences(struct msg_sequence **seq, int n);
65 #define ok_sequence(seq, index, exp, contx, todo) \
66 ok_sequence_(seq, index, (exp), (contx), (todo), __FILE__, __LINE__)
69 void ok_sequence_(struct msg_sequence **seq, int sequence_index,
70 const struct message *expected, const char *context, int todo,
71 const char *file, int line);
73 void init_msg_sequences(struct msg_sequence **seq, int n);