proxygen
testing::InSequence Class Reference

#include <gmock-spec-builders.h>

Public Member Functions

 InSequence ()
 
 ~InSequence ()
 
 InSequence ()
 
 ~InSequence ()
 
 InSequence ()
 
 ~InSequence ()
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (InSequence)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (InSequence)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (InSequence)
 

Private Attributes

bool sequence_created_
 

Detailed Description

Definition at line 660 of file gmock-spec-builders.h.

Constructor & Destructor Documentation

testing::InSequence::InSequence ( )

Definition at line 805 of file gmock-spec-builders.cc.

References testing::internal::g_gmock_implicit_sequence.

Referenced by testing::internal::TypedExpectation< F >::InSequence().

805  {
806  if (internal::g_gmock_implicit_sequence.get() == NULL) {
807  internal::g_gmock_implicit_sequence.set(new Sequence);
808  sequence_created_ = true;
809  } else {
810  sequence_created_ = false;
811  }
812 }
GTEST_API_ ThreadLocal< Sequence * > g_gmock_implicit_sequence
testing::InSequence::~InSequence ( )

Definition at line 816 of file gmock-spec-builders.cc.

References testing::internal::g_gmock_implicit_sequence.

816  {
817  if (sequence_created_) {
820  }
821 }
GTEST_API_ ThreadLocal< Sequence * > g_gmock_implicit_sequence
testing::InSequence::InSequence ( )
testing::InSequence::~InSequence ( )
testing::InSequence::InSequence ( )
testing::InSequence::~InSequence ( )

Member Function Documentation

testing::InSequence::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( InSequence  )
private
testing::InSequence::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( InSequence  )
private
testing::InSequence::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( InSequence  )
private

Member Data Documentation

bool testing::InSequence::sequence_created_
private

Definition at line 665 of file gmock-spec-builders.h.


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