mock_dp.c revision 3e5e98aae4b14f5447c561ff5b0d854b74046312
/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2016 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 <tevent.h>
#include "providers/data_provider/dp_private.h"
#include "providers/data_provider/dp.h"
#include "tests/cmocka/common_mock.h"
{
DP_METHOD_SENTINEL + 1);
return methods;
}
{
enum dp_targets type;
DP_TARGET_SENTINEL + 1);
}
return targets;
}
{
struct data_provider *provider;
provider->terminating = false;
return provider;
}
enum dp_targets target)
{
return methods;
}