mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
24 lines
441 B
C++
24 lines
441 B
C++
#ifndef MOCK_FUSE_HPP
|
|
#define MOCK_FUSE_HPP
|
|
|
|
#include "webfuse/adapter/impl/fuse_wrapper.h"
|
|
#include <gmock/gmock.h>
|
|
|
|
namespace webfuse_test
|
|
{
|
|
|
|
class FuseMock
|
|
{
|
|
public:
|
|
FuseMock();
|
|
virtual ~FuseMock();
|
|
|
|
MOCK_METHOD1(fuse_req_userdata, void *(fuse_req_t req));
|
|
MOCK_METHOD2(fuse_reply_open, int (fuse_req_t req, const struct fuse_file_info *fi));
|
|
MOCK_METHOD2(fuse_reply_err, int (fuse_req_t req, int err));
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|