Thu, 22 Sep 2022 23:26:05 -0500
Fix the purplepath unit tests by setting up the test ui and fixing the paths we validate
Testing Done:
Ran the tests.
Reviewed at https://reviews.imfreedom.org/r/1827/
|
39887
9c8f874c74a0
Clean up all of the license headers
Gary Kramlich <grim@reaperworld.com>
parents:
39885
diff
changeset
|
1 | /* |
|
9c8f874c74a0
Clean up all of the license headers
Gary Kramlich <grim@reaperworld.com>
parents:
39885
diff
changeset
|
2 | * finch |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
3 | * |
|
15931
716b5fac1895
Re-sed the copyright notices so they don't all talk about Purple.
Richard Laager <rlaager@pidgin.im>
parents:
15906
diff
changeset
|
4 | * Finch is the legal property of its developers, whose names are too numerous |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
6 | * source distribution. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
7 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
11 | * (at your option) any later version. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
12 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
16 | * GNU General Public License for more details. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
17 | * |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16255
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40508
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
23 | #if !defined(FINCH_GLOBAL_HEADER_INSIDE) && !defined(FINCH_COMPILATION) |
|
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
24 | # error "only <finch.h> may be included directly" |
|
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
25 | #endif |
|
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
26 | |
|
39885
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39532
diff
changeset
|
27 | #ifndef FINCH_DEBUG_H |
|
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39532
diff
changeset
|
28 | #define FINCH_DEBUG_H |
|
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39532
diff
changeset
|
29 | |
|
40359
ca141ea93b83
Make all of finch use purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
39887
diff
changeset
|
30 | #include <purple.h> |
|
14045
12b8c2bfd3fb
[gaim-migrate @ 16552]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
31 | |
|
38644
8ba616e7c69c
Convert Finch debug into a GObject.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
32 | G_BEGIN_DECLS |
|
8ba616e7c69c
Convert Finch debug into a GObject.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
33 | |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
34 | /********************************************************************** |
| 35472 | 35 | * GNT Debug API |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
36 | **********************************************************************/ |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
37 | |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
38 | /** |
|
41118
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
39 | * finch_debug_init_handler: |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
40 | * |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
41 | * Initialize handler for GLib logging system. |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
42 | * |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
43 | * This must be called early if you want to capture logs at startup, and avoid |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
44 | * printing them out. |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
45 | * |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
46 | * Since: 3.0.0 |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
47 | */ |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
48 | void finch_debug_init_handler(void); |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
49 | |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
50 | /** |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
51 | * finch_debug_init: |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
52 | * |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
53 | * Perform necessary initializations. |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
54 | * |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
55 | * Since: 3.0.0 |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
56 | */ |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
57 | void finch_debug_init(void); |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
58 | |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
59 | /** |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
60 | * finch_debug_uninit: |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
61 | * |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
62 | * Perform necessary uninitialization. |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
63 | */ |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
64 | void finch_debug_uninit(void); |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
65 | |
|
bd2767810a18
Initialize Finch debug handlers earlier
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
40508
diff
changeset
|
66 | /** |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
67 | * finch_debug_window_show: |
|
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
68 | * |
|
14620
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
69 | * Show the debug window. |
|
90d599495d65
[gaim-migrate @ 17281]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14260
diff
changeset
|
70 | */ |
|
15878
f52832b611fe
renamed gaim-text to finch
Sean Egan <seanegan@pidgin.im>
parents:
14620
diff
changeset
|
71 | void finch_debug_window_show(void); |
|
14260
a21577fbb4d2
[gaim-migrate @ 16870]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14086
diff
changeset
|
72 | |
|
38644
8ba616e7c69c
Convert Finch debug into a GObject.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
73 | G_END_DECLS |
|
8ba616e7c69c
Convert Finch debug into a GObject.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37094
diff
changeset
|
74 | |
|
39885
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39532
diff
changeset
|
75 | #endif /* FINCH_DEBUG_H */ |
|
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39532
diff
changeset
|
76 |