QuISP
Loading...
Searching...
No Matches
MockBackendQubit.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <gmock/gmock.h>
4
#include <
modules/common_types.h
>
5
#include <
test_utils/ModuleType.h
>
6
#include <
test_utils/TestUtilFunctions.h
>
7
#include "
backends/interfaces/IQubit.h
"
8
#include "gmock/gmock-function-mocker.h"
9
namespace
quisp_test::mock_backends
{
10
class
MockBackendQubit
:
public
quisp::backends::abstract::IQubit
{
11
public
:
12
MOCK_METHOD
(
void
,
setFree
, (), (
override
));
13
};
14
}
// namespace quisp_test::mock_backends
IQubit.h
ModuleType.h
TestUtilFunctions.h
quisp::backends::abstract::IQubit
Definition
IQubit.h:30
quisp::backends::abstract::IQubit::setFree
virtual void setFree()=0
quisp_test::mock_backends::MockBackendQubit
Definition
MockBackendQubit.h:10
quisp_test::mock_backends::MockBackendQubit::MOCK_METHOD
MOCK_METHOD(void, setFree,(),(override))
common_types.h
quisp_test::mock_backends
Definition
MockBackendQubit.h:9
quisp
test_utils
mock_backends
MockBackendQubit.h
Generated by
1.12.0