Push GResource URL for test data down so it's accessible to all tests.

This commit is contained in:
Michael James Gratton 2018-05-19 09:22:23 +10:00
parent d91dd36484
commit f78939ce00
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,6 @@
class Geary.RFC822.MessageTest : TestCase {
private const string RESOURCE_URI = "resource:///org/gnome/GearyTest";
private const string BASIC_TEXT_PLAIN = "basic-text-plain.eml";
private const string BASIC_TEXT_HTML = "basic-text-html.eml";

View file

@ -152,9 +152,14 @@ private inline void print_assert(string message, string? context) {
GLib.stderr.putc('\n');
}
public abstract class TestCase : Object {
/** GLib.File URI for resources in test/data. */
public const string RESOURCE_URI = "resource:///org/gnome/GearyTest";
private class SignalWaiter : Object {
public bool was_fired = false;