Electroneum
Loading...
Searching...
No Matches
testing::DefaultValue< void > Class Reference

#include <gmock-actions.h>

Public Types

typedef void(* FactoryFunction) ()

Static Public Member Functions

static bool Exists ()
static void Get ()
static void Set (void x)
static void SetFactory (FactoryFunction factory)
static void Clear ()
static bool IsSet ()

Detailed Description

Definition at line 311 of file gmock-actions.h.

Member Typedef Documentation

◆ FactoryFunction

typedef void(* testing::DefaultValue< void >::FactoryFunction) ()

Definition at line 212 of file gmock-actions.h.

Member Function Documentation

◆ Clear()

void testing::DefaultValue< void >::Clear ( )
inlinestatic

Definition at line 219 of file gmock-actions.h.

219 {
220 delete producer_;
221 producer_ = NULL;
222 }

◆ Exists()

bool testing::DefaultValue< void >::Exists ( )
inlinestatic

Definition at line 313 of file gmock-actions.h.

313{ return true; }

◆ Get()

void testing::DefaultValue< void >::Get ( )
inlinestatic

Definition at line 314 of file gmock-actions.h.

314{}

◆ IsSet()

bool testing::DefaultValue< void >::IsSet ( )
inlinestatic

Definition at line 225 of file gmock-actions.h.

225{ return producer_ != NULL; }

◆ Set()

void testing::DefaultValue< void >::Set ( void x)
inlinestatic

Definition at line 204 of file gmock-actions.h.

204 {
205 delete producer_;
206 producer_ = new FixedValueProducer(x);
207 }

◆ SetFactory()

void testing::DefaultValue< void >::SetFactory ( FactoryFunction factory)
inlinestatic

Definition at line 213 of file gmock-actions.h.

213 {
214 delete producer_;
215 producer_ = new FactoryValueProducer(factory);
216 }

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h