tesseract v5.3.3.20231005
testing::gmock_more_actions_test::Foo Class Reference

Public Member Functions

 Foo ()
 
int Nullary () const
 
short Unary (long x)
 
std::string Binary (const std::string &str, char c) const
 
int Ternary (int x, bool y, char z)
 
int SumOf4 (int a, int b, int c, int d) const
 
int SumOfLast2 (Unused, Unused, int a, int b) const
 
int SumOf5 (int a, int b, int c, int d, int e)
 
int SumOf6 (int a, int b, int c, int d, int e, int f)
 
std::string Concat7 (const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7)
 
std::string Concat8 (const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7, const char *s8)
 
std::string Concat9 (const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7, const char *s8, const char *s9)
 
std::string Concat10 (const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, const char *s6, const char *s7, const char *s8, const char *s9, const char *s10)
 

Detailed Description

Definition at line 138 of file gmock-more-actions_test.cc.

Constructor & Destructor Documentation

◆ Foo()

testing::gmock_more_actions_test::Foo::Foo ( )
inline

Definition at line 140 of file gmock-more-actions_test.cc.

140: value_(123) {}

Member Function Documentation

◆ Binary()

std::string testing::gmock_more_actions_test::Foo::Binary ( const std::string &  str,
char  c 
) const
inline

Definition at line 146 of file gmock-more-actions_test.cc.

146{ return str + c; }

◆ Concat10()

std::string testing::gmock_more_actions_test::Foo::Concat10 ( const char *  s1,
const char *  s2,
const char *  s3,
const char *  s4,
const char *  s5,
const char *  s6,
const char *  s7,
const char *  s8,
const char *  s9,
const char *  s10 
)
inline

Definition at line 180 of file gmock-more-actions_test.cc.

183 {
184 return std::string(s1) + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10;
185 }

◆ Concat7()

std::string testing::gmock_more_actions_test::Foo::Concat7 ( const char *  s1,
const char *  s2,
const char *  s3,
const char *  s4,
const char *  s5,
const char *  s6,
const char *  s7 
)
inline

Definition at line 162 of file gmock-more-actions_test.cc.

164 {
165 return std::string(s1) + s2 + s3 + s4 + s5 + s6 + s7;
166 }

◆ Concat8()

std::string testing::gmock_more_actions_test::Foo::Concat8 ( const char *  s1,
const char *  s2,
const char *  s3,
const char *  s4,
const char *  s5,
const char *  s6,
const char *  s7,
const char *  s8 
)
inline

Definition at line 168 of file gmock-more-actions_test.cc.

170 {
171 return std::string(s1) + s2 + s3 + s4 + s5 + s6 + s7 + s8;
172 }

◆ Concat9()

std::string testing::gmock_more_actions_test::Foo::Concat9 ( const char *  s1,
const char *  s2,
const char *  s3,
const char *  s4,
const char *  s5,
const char *  s6,
const char *  s7,
const char *  s8,
const char *  s9 
)
inline

Definition at line 174 of file gmock-more-actions_test.cc.

176 {
177 return std::string(s1) + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9;
178 }

◆ Nullary()

int testing::gmock_more_actions_test::Foo::Nullary ( ) const
inline

Definition at line 142 of file gmock-more-actions_test.cc.

142{ return value_; }

◆ SumOf4()

int testing::gmock_more_actions_test::Foo::SumOf4 ( int  a,
int  b,
int  c,
int  d 
) const
inline

Definition at line 150 of file gmock-more-actions_test.cc.

150 {
151 return a + b + c + d + value_;
152 }

◆ SumOf5()

int testing::gmock_more_actions_test::Foo::SumOf5 ( int  a,
int  b,
int  c,
int  d,
int  e 
)
inline

Definition at line 156 of file gmock-more-actions_test.cc.

156{ return a + b + c + d + e; }

◆ SumOf6()

int testing::gmock_more_actions_test::Foo::SumOf6 ( int  a,
int  b,
int  c,
int  d,
int  e,
int  f 
)
inline

Definition at line 158 of file gmock-more-actions_test.cc.

158 {
159 return a + b + c + d + e + f;
160 }

◆ SumOfLast2()

int testing::gmock_more_actions_test::Foo::SumOfLast2 ( Unused  ,
Unused  ,
int  a,
int  b 
) const
inline

Definition at line 154 of file gmock-more-actions_test.cc.

154{ return a + b; }

◆ Ternary()

int testing::gmock_more_actions_test::Foo::Ternary ( int  x,
bool  y,
char  z 
)
inline

Definition at line 148 of file gmock-more-actions_test.cc.

148{ return value_ + x + y*z; }
Uncopyable z
const double y

◆ Unary()

short testing::gmock_more_actions_test::Foo::Unary ( long  x)
inline

Definition at line 144 of file gmock-more-actions_test.cc.

144{ return static_cast<short>(value_ + x); } // NOLINT

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