1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

added tests for wfp_impl_getattr

This commit is contained in:
Falk Werner
2020-03-30 20:40:03 +02:00
parent 70e9f0a278
commit e9f371c14a
5 changed files with 103 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
#include "webfuse/mocks/fake_invokation_context.hpp"
namespace webfuse_test
{
wfp_impl_invokation_context create_context(MockProvider& provider, wfp_request * request)
{
wfp_impl_invokation_context context =
{
provider.get_provider(),
provider.get_userdata(),
request
};
return context;
}
}

View File

@@ -0,0 +1,16 @@
#ifndef FAKE_INVOCATION_CONTEXT_HPP
#define FAKE_INVOCATION_CONTEXT_HPP
#include "webfuse/provider/impl/provider.h"
#include "webfuse/mocks/mock_provider.hpp"
namespace webfuse_test
{
wfp_impl_invokation_context create_context(
MockProvider& provider,
wfp_request * request = nullptr);
}
#endif