Debian Codegraph @

tests/ews-test-common.h

raw
1 /*
2 * SPDX-FileCopyrightText: (C) 2013 Red Hat, Inc. (www.redhat.com)
3 * SPDX-FileContributor: Fabiano FidĂȘncio <[email protected]>
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7 #ifndef EWS_TEST_COMMON_H
8 #define EWS_TEST_COMMON_H
9
10 #include <uhttpmock/uhm.h>
11
12 #include "common/camel-ews-settings.h"
13 #include "common/e-ews-connection.h"
14
15 G_BEGIN_DECLS
16
17 typedef struct _EwsTestData {
18 EEwsConnection *connection;
19 gchar *hostname;
20 gchar *version;
21 gchar *server_uri;
22 } EwsTestData;
23
24 gint ews_test_init (gint argc,
25 gchar **argv);
26 UhmServer * ews_test_get_mock_server (void);
27 GList * ews_test_get_test_data_list (void);
28 void ews_test_cleanup (void);
29 void ews_test_server_start_trace (UhmServer *server,
30 EwsTestData *etd,
31 const gchar *trace_filename,
32 GError **error);
33 void ews_test_server_set_trace_directory (UhmServer *server,
34 const gchar *version,
35 const gchar *tests);
36
37 G_END_DECLS
38
39 #endif /* EWS_TEST_COMMON_H */