mirror of
https://github.com/Ascend/ascend-docker-runtime.git
synced 2025-10-16 20:30:49 +08:00
24 lines
369 B
C++
24 lines
369 B
C++
|
|
#ifndef __MOCKCPP_API_HOOK_HOLDER_FACTORY_H__
|
|
#define __MOCKCPP_API_HOOK_HOLDER_FACTORY_H__
|
|
|
|
#include <mockcpp/ParameterizedApiHookHolder.h>
|
|
|
|
MOCKCPP_NS_START
|
|
|
|
struct ApiHookHolder;
|
|
|
|
struct ApiHookHolderFactory
|
|
{
|
|
template <typename F>
|
|
static ApiHookHolder* create(F api)
|
|
{
|
|
return new ParameterizedApiHookHolder<F>(api);
|
|
}
|
|
};
|
|
|
|
MOCKCPP_NS_END
|
|
|
|
#endif
|
|
|