Definition at line 3279 of file gtest.cc.
◆ TestEventRepeater()
testing::internal::TestEventRepeater::TestEventRepeater |
( |
| ) |
|
|
inline |
Definition at line 3281 of file gtest.cc.
3281: forwarding_enabled_(true) {}
◆ ~TestEventRepeater()
testing::internal::TestEventRepeater::~TestEventRepeater |
( |
| ) |
|
|
virtual |
Definition at line 3315 of file gtest.cc.
3315 {
3316 ForEach(listeners_, Delete<TestEventListener>);
3317}
void ForEach(const Container &c, Functor functor)
◆ Append()
Definition at line 3319 of file gtest.cc.
3319 {
3320 listeners_.push_back(listener);
3321}
◆ forwarding_enabled()
bool testing::internal::TestEventRepeater::forwarding_enabled |
( |
| ) |
const |
|
inline |
Definition at line 3288 of file gtest.cc.
3288{ return forwarding_enabled_; }
◆ OnEnvironmentsSetUpEnd()
virtual void testing::internal::TestEventRepeater::OnEnvironmentsSetUpEnd |
( |
const UnitTest & | unit_test | ) |
|
|
virtual |
◆ OnEnvironmentsSetUpStart()
virtual void testing::internal::TestEventRepeater::OnEnvironmentsSetUpStart |
( |
const UnitTest & | unit_test | ) |
|
|
virtual |
◆ OnEnvironmentsTearDownEnd()
virtual void testing::internal::TestEventRepeater::OnEnvironmentsTearDownEnd |
( |
const UnitTest & | unit_test | ) |
|
|
virtual |
◆ OnEnvironmentsTearDownStart()
virtual void testing::internal::TestEventRepeater::OnEnvironmentsTearDownStart |
( |
const UnitTest & | unit_test | ) |
|
|
virtual |
◆ OnTestCaseEnd()
virtual void testing::internal::TestEventRepeater::OnTestCaseEnd |
( |
const TestCase & | test_case | ) |
|
|
virtual |
◆ OnTestCaseStart()
virtual void testing::internal::TestEventRepeater::OnTestCaseStart |
( |
const TestCase & | test_case | ) |
|
|
virtual |
◆ OnTestEnd()
virtual void testing::internal::TestEventRepeater::OnTestEnd |
( |
const TestInfo & | test_info | ) |
|
|
virtual |
◆ OnTestIterationEnd()
void testing::internal::TestEventRepeater::OnTestIterationEnd |
( |
const UnitTest & | unit_test, |
|
|
int | iteration ) |
|
virtual |
Implements testing::TestEventListener.
Definition at line 3380 of file gtest.cc.
3381 {
3382 if (forwarding_enabled_) {
3383 for (int i = static_cast<int>(listeners_.size()) - 1; i >= 0; i--) {
3384 listeners_[i]->OnTestIterationEnd(unit_test, iteration);
3385 }
3386 }
3387}
◆ OnTestIterationStart()
void testing::internal::TestEventRepeater::OnTestIterationStart |
( |
const UnitTest & | unit_test, |
|
|
int | iteration ) |
|
virtual |
Implements testing::TestEventListener.
Definition at line 3371 of file gtest.cc.
3372 {
3373 if (forwarding_enabled_) {
3374 for (size_t i = 0; i < listeners_.size(); i++) {
3375 listeners_[i]->OnTestIterationStart(unit_test, iteration);
3376 }
3377 }
3378}
◆ OnTestPartResult()
virtual void testing::internal::TestEventRepeater::OnTestPartResult |
( |
const TestPartResult & | result | ) |
|
|
virtual |
◆ OnTestProgramEnd()
virtual void testing::internal::TestEventRepeater::OnTestProgramEnd |
( |
const UnitTest & | unit_test | ) |
|
|
virtual |
◆ OnTestProgramStart()
virtual void testing::internal::TestEventRepeater::OnTestProgramStart |
( |
const UnitTest & | unit_test | ) |
|
|
virtual |
◆ OnTestStart()
virtual void testing::internal::TestEventRepeater::OnTestStart |
( |
const TestInfo & | test_info | ) |
|
|
virtual |
◆ Release()
Definition at line 3324 of file gtest.cc.
3324 {
3325 for (size_t i = 0; i < listeners_.size(); ++i) {
3326 if (listeners_[i] == listener) {
3327 listeners_.erase(listeners_.begin() + i);
3328 return listener;
3329 }
3330 }
3331
3332 return NULL;
3333}
◆ set_forwarding_enabled()
void testing::internal::TestEventRepeater::set_forwarding_enabled |
( |
bool | enable | ) |
|
|
inline |
Definition at line 3289 of file gtest.cc.
3289{ forwarding_enabled_ = enable; }
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest.cc