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:
17
test/webfuse/mocks/fake_invokation_context.cc
Normal file
17
test/webfuse/mocks/fake_invokation_context.cc
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
16
test/webfuse/mocks/fake_invokation_context.hpp
Normal file
16
test/webfuse/mocks/fake_invokation_context.hpp
Normal 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
|
||||
Reference in New Issue
Block a user