7 #ifndef IGLOO_CONTEXTRUNNER_H 8 #define IGLOO_CONTEXTRUNNER_H 15 BaseContextRunner(
const std::string& contextName,
const char* fileName,
int lineNumber)
16 : contextName_(contextName), fileName_(fileName), lineNumber_(lineNumber) {}
20 RunContext(results, testListener);
23 virtual bool IsContextMarkedAsOnly()
const = 0;
25 virtual bool IsMarkedAsSkip()
const = 0;
27 const std::string& ContextName()
const 32 const std::string& FileName()
const 37 int LineNumber()
const 46 std::string contextName_;
47 std::string fileName_;
51 template <
typename ContextRegistryType,
typename ContextType>
54 typedef ContextRegistryType ContextToExecute;
55 typedef ContextType ContextToCreate;
58 template <
typename ContextType>
61 typedef ContextType ContextToExecute;
62 typedef ContextType ContextToCreate;
65 template <
typename ContextRegistryType,
typename ContextType>
69 typedef typename ContextSelector<ContextRegistryType, ContextType>::ContextToExecute CTE;
70 typedef typename ContextSelector<ContextRegistryType, ContextType>::ContextToCreate CTC;
72 ContextRunner(
const std::string& contextName,
const char* fileName,
int lineNumber)
75 void InstantiateContext()
const 80 virtual bool IsContextMarkedAsOnly()
const 82 return ContextType::IsContextMarkedAsOnly();
85 virtual bool IsMarkedAsSkip()
const 87 return ContextType::IsMarkedAsSkip();
93 CR::template Run<CTC>(ContextName(), results, testListener);
Definition: testlistener.h:14
Definition: contextrunner.h:66
Definition: contextrunner.h:52
Definition: contextrunner.h:13
Definition: contextregistry.h:26
Definition: testresults.h:12