mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
refactor: make filesystem independent of session
This commit is contained in:
@@ -5,10 +5,8 @@
|
||||
TEST(wf_impl_operation_context, get_proxy)
|
||||
{
|
||||
wf_jsonrpc_proxy * proxy = reinterpret_cast<wf_jsonrpc_proxy*>(42);
|
||||
wf_impl_session session;
|
||||
session.rpc = proxy;
|
||||
wf_impl_operation_context context;
|
||||
context.session = &session;
|
||||
context.proxy = proxy;
|
||||
|
||||
ASSERT_EQ(proxy, wf_impl_operation_context_get_proxy(&context));
|
||||
}
|
||||
@@ -16,7 +14,7 @@ TEST(wf_impl_operation_context, get_proxy)
|
||||
TEST(wf_impl_operation_context, get_proxy_fail_no_session)
|
||||
{
|
||||
wf_impl_operation_context context;
|
||||
context.session = nullptr;
|
||||
context.proxy = nullptr;
|
||||
|
||||
ASSERT_EQ(nullptr, wf_impl_operation_context_get_proxy(&context));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user