ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypoUnitTests
src
MockCondition.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGHLTJETHYPOUNITTESTS_MOCKCONDITION_H
6
#define TRIGHLTJETHYPOUNITTESTS_MOCKCONDITION_H
7
8
#include "TrigHLTJetHypo/TrigHLTJetHypoUtils/ICondition.h"
9
#include "gmock/gmock.h"
10
#include "
TrigHLTJetHypo/TrigHLTJetHypoUtils/HypoJetDefs.h
"
11
12
class
MockCondition
:
public
ICondition
{
13
public
:
14
MOCK_CONST_METHOD1
(
isSatisfied
,
bool
(
const
HypoJetVector
&));
15
16
//supply kludges needed due to no google mock support for noexcept
17
// std::string toString() const noexcept {return toString_kludge();}
18
std::string
toString
()
const
noexcept {
return
"MockCondition"
;}
19
// MOCK_CONST_METHOD0(toString_kludge, std::string());
20
21
double
orderingParameter
()
const
noexcept {
return
-999;}
22
// double orderingParameter() const noexcept {return orderingParameter_kludge();}
23
// MOCK_CONST_METHOD0(orderingParameter_kludge, double());
24
};
25
#endif
ICondition::isSatisfied
virtual bool isSatisfied(const HypoJetVector &, const std::unique_ptr< ITrigJetHypoInfoCollector > &) const =0
MockCondition::toString
std::string toString() const noexcept
Definition:
MockCondition.h:18
HypoJetDefs.h
const
bool const RAWDATA *ch2 const
Definition:
LArRodBlockPhysicsV0.cxx:560
ICondition
Definition:
ICondition.h:22
MockCondition
Definition:
MockCondition.h:12
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition:
HypoJetDefs.h:27
MockCondition::MOCK_CONST_METHOD1
MOCK_CONST_METHOD1(isSatisfied, bool(const HypoJetVector &))
MockCondition::orderingParameter
double orderingParameter() const noexcept
Definition:
MockCondition.h:21
Generated on Thu Nov 7 2024 21:21:19 for ATLAS Offline Software by
1.8.18