示例#1
0
static apt_bool_t parse_gen_test_run(apt_test_suite_t *suite, int argc, const char * const *argv)
{
	mrcp_resource_factory_t *factory;
	mrcp_resource_loader_t *resource_loader;
	resource_loader = mrcp_resource_loader_create(TRUE,suite->pool);
	if(!resource_loader) {
		apt_log(APT_LOG_MARK,APT_PRIO_WARNING,"Failed to Create Resource Loader");
		return FALSE;
	}
	
	factory = mrcp_resource_factory_get(resource_loader);
	if(!factory) {
		apt_log(APT_LOG_MARK,APT_PRIO_WARNING,"Failed to Create Resource Factory");
		return FALSE;
	}

	test_dir_process(suite,factory,MRCP_VERSION_2);
	test_dir_process(suite,factory,MRCP_VERSION_1);

	mrcp_resource_factory_destroy(factory);
	return TRUE;
}
示例#2
0
static apt_bool_t set_get_test_run(apt_test_suite_t *suite, int argc, const char * const *argv)
{
    mrcp_resource_factory_t *factory;
    mrcp_resource_loader_t *resource_loader;
    resource_loader = mrcp_resource_loader_create(TRUE,suite->pool);
    if(!resource_loader) {
        apt_log(APT_LOG_MARK,APT_PRIO_WARNING,"Failed to Create Resource Loader");
        return FALSE;
    }

    factory = mrcp_resource_factory_get(resource_loader);
    if(!factory) {
        apt_log(APT_LOG_MARK,APT_PRIO_WARNING,"Failed to Create Resource Factory");
        return FALSE;
    }

    speak_test_run(suite,factory);
    get_params_test_run(suite,factory);

    mrcp_resource_factory_destroy(factory);
    return TRUE;
}