Files
UnrealEngine/Engine/Source/ThirdParty/FakeIt/2.0.2/include/fakeit/VerifyNoOtherInvocationsFunctor.hpp
2025-05-18 13:04:45 +08:00

48 lines
1.3 KiB
C++

/*
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Mar 10, 2014
*/
#pragma once
#include <set>
#include <memory>
#include "fakeit/StubbingImpl.hpp"
#include "fakeit/StubbingProgress.hpp"
#include "fakeit/Sequence.hpp"
#include "fakeit/SortInvocations.hpp"
#include "fakeit/UsingFunctor.hpp"
#include "fakeit/VerifyNoOtherInvocationsVerificationProgress.hpp"
#include "mockutils/smart_ptr.hpp"
#include "mockutils/Macros.hpp"
#include "fakeit/FakeitContext.hpp"
namespace fakeit {
class VerifyNoOtherInvocationsFunctor {
FakeitContext &_fakeit;
public:
VerifyNoOtherInvocationsFunctor(FakeitContext &fakeit) : _fakeit(fakeit) {
}
void operator()() {
}
template<typename ... list>
VerifyNoOtherInvocationsVerificationProgress operator()(const ActualInvocationsSource &head,
const list &... tail) {
std::vector<ActualInvocationsSource *> invocationSources{&InvocationUtils::remove_const(head),
&InvocationUtils::remove_const(tail)...};
VerifyNoOtherInvocationsVerificationProgress progress{_fakeit, invocationSources};
return progress;
}
};
}