test_sbus_opath.c revision ca6dd8e7ac91c7f8e3b4d55206d4f39791ab7149
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2014 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 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.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <talloc.h>
#include <errno.h>
#include <popt.h>
#include "sbus/sssd_dbus.h"
#include "tests/cmocka/common_mock.h"
void test_sbus_opath_strip_prefix(void **state)
{
const char *prefix = "/org/freedesktop/sssd/";
const char *path = "/org/freedesktop/sssd/infopipe";
const char *strip;
}
void test_sbus_opath_escape_unescape(void **state)
{
char *escaped;
char *raw;
/* underscore is 0x5F in ascii */
/* empty string */
/* negative tests */
}
void test_sbus_opath_compose(void **state)
{
char *path;
/* Doesn't need escaping */
}
void test_sbus_opath_compose_escape(void **state)
{
char *path;
/* A dot needs escaping */
}
void test_sbus_opath_get_object_name(void **state)
{
char *name;
}
{
int opt;
struct poptOption long_options[] = {
};
};
/* Set debug level to invalid value so we can deside if -d 0 was used. */
switch(opt) {
default:
return 1;
}
}
}