* tests/lib/messages.c (test_message_read_file): Fix an fd leak * tests/lib/session.c, tests/lib/session.h: a CamelSession subclass for the test programs. * tests/lib/Makefile.am: include session.[ch] * tests/folder/test*.c: Use a CamelTestSession from libcameltest instead of cut+pasting everywhere. * tests/misc/url.c (main): Update for a camel_url_new change at some point. * tests/*/.cvsignore: Add stuff. * camel-mime-utils.c (rfc2047_encode_word): Fix a silly ==/!= mixup. svn path=/trunk/; revision=10023
20 lines
700 B
C
20 lines
700 B
C
#include <camel/camel-session.h>
|
|
|
|
#define CAMEL_TEST_SESSION_TYPE (camel_test_session_get_type ())
|
|
#define CAMEL_TEST_SESSION(obj) (CAMEL_CHECK_CAST((obj), CAMEL_TEST_SESSION_TYPE, CamelTestSession))
|
|
#define CAMEL_TEST_SESSION_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_TEST_SESSION_TYPE, CamelTestSessionClass))
|
|
#define CAMEL_TEST_IS_SESSION(o) (CAMEL_CHECK_TYPE((o), CAMEL_TEST_SESSION_TYPE))
|
|
|
|
typedef struct _CamelTestSession {
|
|
CamelSession parent_object;
|
|
|
|
} CamelTestSession;
|
|
|
|
typedef struct _CamelTestSessionClass {
|
|
CamelSessionClass parent_class;
|
|
|
|
} CamelTestSessionClass;
|
|
|
|
CamelType camel_test_session_get_type (void);
|
|
CamelSession *camel_test_session_new (const char *path);
|