875207a46c079ba1a9ffbc5c28d5cf0ebaf15d86
[platform/upstream/glib-networking.git] / tls / tests / mock-interaction.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * Copyright (C) 2011 Collabora Ltd.
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  *
20  * Author: Stef Walter <stefw@collabora.co.uk>
21  */
22
23 #include <gio/gio.h>
24
25 #ifndef __MOCK_INTERACTION_H__
26 #define __MOCK_INTERACTION_H__
27
28 G_BEGIN_DECLS
29
30 #define MOCK_TYPE_INTERACTION         (mock_interaction_get_type ())
31
32 G_DECLARE_FINAL_TYPE (MockInteraction, mock_interaction, MOCK, INTERACTION, GTlsInteraction)
33
34 GTlsInteraction *mock_interaction_new_static_password       (const gchar *password);
35
36 GTlsInteraction *mock_interaction_new_static_certificate    (GTlsCertificate *cert);
37
38 GTlsInteraction *mock_interaction_new_static_error          (GQuark domain,
39                                                              gint code,
40                                                              const gchar *message);
41
42 G_END_DECLS
43
44 #endif /* __MOCK_INTERACTION_H__ */