proxygen
Validator Class Reference
Inheritance diagram for Validator:
InheritsThrowingConstructor

Public Member Functions

 Validator (int expectedCount, const std::string &msg)
 
 ~Validator ()
 
void validate ()
 

Private Attributes

const int32_t expectedCount_
 
const std::string msg_
 

Detailed Description

Definition at line 27 of file UncaughtExceptionsTest.cpp.

Constructor & Destructor Documentation

Validator::Validator ( int  expectedCount,
const std::string msg 
)
inline

Definition at line 29 of file UncaughtExceptionsTest.cpp.

30  : expectedCount_(expectedCount), msg_(msg) {}
const std::string msg_
const int32_t expectedCount_
Validator::~Validator ( )
inline

Definition at line 33 of file UncaughtExceptionsTest.cpp.

References validate().

33  {
34  validate();
35  }

Member Function Documentation

void Validator::validate ( )
inline

Definition at line 38 of file UncaughtExceptionsTest.cpp.

References EXPECT_EQ, expectedCount_, msg_, and folly::uncaught_exceptions().

Referenced by TEST(), and ~Validator().

38  {
39  LOG(INFO) << msg_ << ", expected " << expectedCount_ << ", is "
42  }
#define EXPECT_EQ(val1, val2)
Definition: gtest.h:1922
int uncaught_exceptions() noexcept
const std::string msg_
const int32_t expectedCount_

Member Data Documentation

const int32_t Validator::expectedCount_
private

Definition at line 45 of file UncaughtExceptionsTest.cpp.

Referenced by validate().

const std::string Validator::msg_
private

Definition at line 46 of file UncaughtExceptionsTest.cpp.

Referenced by validate().


The documentation for this class was generated from the following file: