Imported Upstream version 2.72.alpha
[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
16  * Public License along with this library; if not, see
17  * <http://www.gnu.org/licenses/>.
18  *
19  * Author: Stef Walter <stefw@collabora.co.uk>
20  */
21
22 #include <gio/gio.h>
23
24 #pragma once
25
26 G_BEGIN_DECLS
27
28 #define MOCK_TYPE_INTERACTION         (mock_interaction_get_type ())
29
30 G_DECLARE_FINAL_TYPE (MockInteraction, mock_interaction, MOCK, INTERACTION, GTlsInteraction)
31
32 GTlsInteraction *mock_interaction_new_static_password       (const gchar *password);
33
34 GTlsInteraction *mock_interaction_new_static_certificate    (GTlsCertificate *cert);
35
36 GTlsInteraction *mock_interaction_new_static_error          (GQuark domain,
37                                                              gint code,
38                                                              const gchar *message);
39
40 G_END_DECLS