diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2013-11-25 18:32:20 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-02-13 13:41:58 +0100 |
commit | bff2a8d2f29fbf5e493c115101e48dd0ce37c3cd (patch) | |
tree | db561db4080a2a6a08737a47ebdcddc14428be1c /plugins/tests/test-port-context.h | |
parent | ba58aa42f2ff931b561c45e2073772bc9b419dfc (diff) |
tests: added support for DBus service tests
We can now run 'simulated' modems against a ModemManager running in its own
session bus.
Diffstat (limited to 'plugins/tests/test-port-context.h')
-rw-r--r-- | plugins/tests/test-port-context.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/tests/test-port-context.h b/plugins/tests/test-port-context.h new file mode 100644 index 00000000..9aaf1077 --- /dev/null +++ b/plugins/tests/test-port-context.h @@ -0,0 +1,35 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details: + * + * Copyright (C) 2013 Aleksander Morgado <aleksander@gnu.org> + */ + +#ifndef TEST_PORT_CONTEXT_H +#define TEST_PORT_CONTEXT_H + +#include <glib.h> +#include <glib-object.h> + +typedef struct _TestPortContext TestPortContext; + +TestPortContext *test_port_context_new (const gchar *name); +void test_port_context_start (TestPortContext *self); +void test_port_context_stop (TestPortContext *self); +void test_port_context_free (TestPortContext *self); + +void test_port_context_set_command (TestPortContext *self, + const gchar *command, + const gchar *response); +void test_port_context_load_commands (TestPortContext *self, + const gchar *commands_file); + +#endif /* TEST_PORT_CONTEXT_H */ |