glib/gio/tests
Ryan Lortie 6fd5a8cdaa GDesktopAppInfo: rewrite content type code
Redo the code for type-based selection of applications (all,
recommended, default, fallback) based on the new DesktopFileDir
structures that we introduced last cycle.

At the same time, we expand the functionality to add support for the new
features of the specification:

 - moving ~/.local/share/applications/mimeapps.list to ~/.config/

 - per-desktop default applications (via XDG_CURRENT_DESKTOP)

 - sysadmin customisation of defaults (via /etc/xdg/mimeapps.list)

 - deprecation of the old defaults.list, favouring the use of
   /usr/share/applications/mimeapps.list (or gnome-mimeapps.list) to
   accomplish the same

We modify the mimeapps testcase to check for mimeapps.list having been
created in XDG_CONFIG_HOME instead of XDG_DATA_HOME.

The modification is a net reduction of code (due to less duplication in
bookkeeping).  It is also an increase in performance and reduction in
memory consumption (due to simplified data structures).  Finally, it
removes the stat-based timestamp checking in favour of the
GFileMonitor-based approach that was already being used in the
implementation of DesktopFileDir (in order to know if we had to rescan
the desktop files themselves).

https://bugzilla.gnome.org/show_bug.cgi?id=728040
2014-04-15 11:36:39 -04:00
..
cert-tests Convert some gio tests to installed tests 2013-05-20 06:38:41 -04:00
desktop-files desktopappinfo: add Exec to searchable keys 2014-03-03 16:01:27 -05:00
gdbus-object-manager-example Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
modules giomodule test: force shared library build 2014-01-13 15:31:38 -05:00
schema-tests Add a test for CDATA in gschema.xml files 2011-11-07 00:14:28 -05:00
services Adding test coverage for GTestDBus activating in-tree services. 2012-12-28 21:28:28 -05:00
thumbnails tests: Add tests for the thumbnail verification code in GIO 2013-10-24 13:55:33 -04:00
x-content Add tests for x-content type sniffing 2014-01-01 17:59:20 -05:00
.gitignore Update .gitignore 2014-01-15 10:37:59 -05:00
actions.c test default GSimpleAction activation 2014-01-21 15:15:38 -05:00
appinfo-test2.desktop Cleanups 2010-07-05 00:56:12 -04:00
appinfo-test-actions.desktop Add missing file 2013-07-11 13:49:20 -04:00
appinfo-test-gnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test-notgnome.desktop Add some more appinfo tests 2010-07-04 20:51:06 -04:00
appinfo-test.c Fix up the appinfo test 2013-11-23 22:21:29 -05:00
appinfo-test.desktop Improve GAppInfo test coverage 2012-08-19 02:23:32 -04:00
appinfo.c Fix up appinfo test 2013-11-23 22:24:51 -05:00
appmonitor.c appmonitor test: avoid /usr/share 2014-04-15 11:36:39 -04:00
apps.c tests: expand 'apps' tool 2014-04-15 11:36:38 -04:00
async-close-output-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
async-splice-output-stream.c tests: Add testcases for g_output_stream_splice_async() 2013-09-29 17:48:40 -04:00
basic-application.c Avoid a compiler warning 2014-01-01 22:01:15 -05:00
buffered-input-stream.c gio/tests: add some more async stream tests 2013-01-16 10:17:15 -05:00
buffered-output-stream.c Update tests for new truncate behavior 2013-12-15 21:07:12 -05:00
cancellable.c Updated FSF's address 2014-01-31 14:31:55 +01:00
contenttype.c Test content type icons more thoroughly 2014-02-23 12:11:59 -05:00
contexts.c contexts: Fix memory leak in test 2013-11-11 07:11:22 +01:00
converter-stream.c Improve converter test coverage 2014-01-01 17:59:21 -05:00
credentials.c Tests: Fix up the expected messages 2013-11-11 22:40:57 +08:00
data-input-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
data-output-stream.c Update tests for new truncate behavior 2013-12-15 21:07:12 -05:00
dbus-appinfo.c Updated FSF's address 2014-01-31 14:31:55 +01:00
de.po Merge GSettings tests 2010-04-17 01:48:05 -04:00
defaultvalue.c Add a generic property test 2014-01-01 17:59:21 -05:00
desktop-app-info.c mimetype tests: don't depend on specific behaviour 2014-04-15 11:36:39 -04:00
echo-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
enums.xml.template GSettings: major refactor. Add enums, range. 2010-06-16 18:17:53 -04:00
file.c Improve file measure testcase 2013-11-30 23:10:13 -05:00
fileattributematcher.c Simplify fileattributematcher tests a bit 2014-01-01 17:59:20 -05:00
filter-cat.c Updated FSF's address 2014-01-31 14:31:55 +01:00
filter-streams.c gio/tests: add some more async stream tests 2013-01-16 10:17:15 -05:00
g-file-info.c Improve GFileAttributeMatcher test coverage 2013-06-02 01:43:13 -04:00
g-file.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
g-icon.c g-icon: Fix memory leak in test 2013-11-11 07:11:29 +01:00
gapplication-example-actions.c Don't use deprecated GApplication api in examples 2011-12-08 18:05:15 -05:00
gapplication-example-cmdline2.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gapplication-example-cmdline3.c e G_SOURCE_CONTINUE/REMOVE internally 2012-01-25 16:15:18 -05:00
gapplication-example-cmdline.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication-example-dbushooks.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gapplication-example-open.c Tweak GApplication docs 2010-11-02 23:02:05 -04:00
gapplication.c GApplication: disable some more tests 2014-02-17 17:44:58 -05:00
gdbus-addresses.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-auth.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-bz627724.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-close-pending.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-connection-flush-helper.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-connection-flush.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-connection-loss.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-connection-slow.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-connection.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-daemon.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-error.c gio: Add newer dbus UnknownXxxx and PropertyReadOnly errors 2014-04-09 20:48:19 +02:00
gdbus-example-export.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-objectmanager-client.c Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
gdbus-example-objectmanager-server.c Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
gdbus-example-own-name.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-peer.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-proxy-subclass.c Bug 621213 – GDBusProxy and well-known names 2010-06-11 18:21:27 -04:00
gdbus-example-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-subtree.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gdbus-example-unix-fd-client.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-watch-name.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-example-watch-proxy.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
gdbus-exit-on-close.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-export.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-introspection.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-message.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-names.c Work around test failure in gdbus-names 2014-02-17 18:18:20 -05:00
gdbus-non-socket.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-overflow.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-peer-object-manager.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-peer.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-proxy-threads.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-proxy-well-known-name.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-proxy.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-serialization.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-sessionbus.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-sessionbus.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-test-codegen.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-test-fixture.c Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
gdbus-tests.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-tests.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gdbus-testserver.c Add a C version of gdbus-testserver.py 2013-01-03 13:14:26 -05:00
gdbus-threading.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gio-du.c More gio-du win32 fixes 2013-09-23 16:31:40 -04:00
giomodule.c giomodule test: fix again 2014-01-13 16:12:31 -05:00
gmenumodel.c Improve GMenuModel test coverage 2013-06-02 01:44:15 -04:00
gnotification-server.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gnotification-server.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gnotification.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gschema-compile.c GSettings tests: reverse installed test complexity 2013-05-31 23:16:00 -04:00
gsettings.c gsettings: tweak test for last commit 2014-01-02 01:55:07 -05:00
gsubprocess-testprog.c gsubprocess: test environment a bit more 2014-03-04 09:08:24 -05:00
gsubprocess.c gsubprocess: test environment a bit more 2014-03-04 09:08:24 -05:00
gtesttlsbackend.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gtesttlsbackend.h Updated FSF's address 2014-01-31 14:31:55 +01:00
gtlsconsoleinteraction.c Updated FSF's address 2014-01-31 14:31:55 +01:00
gtlsconsoleinteraction.h Updated FSF's address 2014-01-31 14:31:55 +01:00
httpd.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
inet-address.c gnetworkaddress: allow IPv6 scope ids in URIs 2013-08-19 12:15:36 -04:00
io-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
live-g-file.c live-g-file: test hidden files 2013-03-13 09:41:09 -04:00
live-g-file.txt Revert "Move gio tests from gio/tests/ to tests/gio/" 2009-07-05 22:49:24 -04:00
Makefile.am gio tests: add codegen to BUILT_SOURCES 2014-03-07 07:47:14 -05:00
memory-input-stream.c Improve GMemoryInputStream test coverage 2013-06-02 01:44:49 -04:00
memory-output-stream.c Expand the truncate tests 2013-12-15 21:07:12 -05:00
mimeapps.c GDesktopAppInfo: rewrite content type code 2014-04-15 11:36:39 -04:00
monitor.c Add a directory monitoring test 2013-06-02 20:02:06 -04:00
network-address.c networkaddress: fix parsing of uri with @ after authority 2014-04-02 11:23:29 -04:00
network-monitor.c Updated FSF's address 2014-01-31 14:31:55 +01:00
org.gtk.schemasourcecheck.gschema.xml Add test case and fix some bugs 2011-11-17 14:03:39 +00:00
org.gtk.test.dbusappinfo.desktop Make a test desktop file a little less invalid 2013-07-14 11:36:45 -04:00
org.gtk.test.gschema.xml.orig Fix GSettings testcase again 2013-11-15 15:32:09 -05:00
permission.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
pollable.c Updated FSF's address 2014-01-31 14:31:55 +01:00
proxy-test.c Updated FSF's address 2014-01-31 14:31:55 +01:00
proxy.c Updated FSF's address 2014-01-31 14:31:55 +01:00
readwrite.c gio/tests: Clean up inclusion of unistd.h 2013-11-04 22:55:30 +08:00
resolver.c Updated FSF's address 2014-01-31 14:31:55 +01:00
resourceplugin.c visibility: Use a separate CFLAGS variable 2013-01-14 23:31:59 -05:00
resources.c Updated FSF's address 2014-01-31 14:31:55 +01:00
send-data.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
simple-async-result.c g_simple_async_result_is_valid: fix for NULL source tag 2014-02-16 09:24:04 -05:00
simple-proxy.c GSimpleProxyResolver: new simple GProxyResolver class 2013-02-14 10:24:14 -05:00
sleepy-stream.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
socket-address.c Test GUnixSocketAddress construction 2013-04-23 14:36:07 -04:00
socket-client.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
socket-common.c gio/tests/socket-common.c: add a missing #ifdef G_OS_UNIX 2012-02-03 12:58:53 -05:00
socket-server.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
socket.c gio/tests/socket: Update to check the error code 2014-03-30 11:06:35 -04:00
srvtarget.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
task.c gio/tests: Add a dynamic type check assertion 2013-11-27 10:01:30 +00:00
test1.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test2.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test2.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test3.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test3.txt Add tests for GResource 2012-01-13 17:12:53 +01:00
test4.gresource.xml Add tests for GResource 2012-01-13 17:12:53 +01:00
test-codegen.xml gdbus-codegen: Update tests for new inheritance-semantics for Since 2012-10-03 11:23:04 -04:00
test-io-stream.c Updated FSF's address 2014-01-31 14:31:55 +01:00
test-io-stream.h Updated FSF's address 2014-01-31 14:31:55 +01:00
test-pipe-unix.c Updated FSF's address 2014-01-31 14:31:55 +01:00
test-pipe-unix.h Updated FSF's address 2014-01-31 14:31:55 +01:00
test.gresource.xml resources: compiler: Allow stripping blanks from xml data 2012-01-25 14:47:37 +01:00
testenum.h Bug 622124 - implement flags for GSettings 2010-07-01 19:06:02 -04:00
thumbnail-verification.c Fix the build 2014-01-19 08:58:28 -05:00
tls-certificate.c Updated FSF's address 2014-01-31 14:31:55 +01:00
tls-interaction.c Updated FSF's address 2014-01-31 14:31:55 +01:00
unix-fd.c Add gnetworking.h 2012-12-12 15:20:22 +01:00
unix-streams.c Improve unix stream test coverage 2013-06-02 01:47:19 -04:00
vfs.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
volumemonitor.c Remove g_type_init() calls 2012-10-16 09:39:24 -04:00
win32-streams.c gio/tests: Clean up inclusion of unistd.h 2013-11-04 22:55:30 +08:00