Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
gmock-matchers.h File Reference
#include <algorithm>
#include <cmath>
#include <initializer_list>
#include <iterator>
#include <limits>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"
#include "gmock/internal/gmock-pp.h"
#include "gtest/gtest.h"
#include "gmock/internal/custom/gmock-matchers.h"
Include dependency graph for gmock-matchers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GMOCK_MAYBE_5046_
 << DiffStrings(str, arg); More...
 
#define ASSERT_THAT(value, matcher)
 
#define EXPECT_THAT(value, matcher)
 
#define MATCHER(name, description)
 
#define MATCHER_P(name, p0, description)   GMOCK_INTERNAL_MATCHER(name, name##MatcherP, description, (p0))
 
#define MATCHER_P2(name, p0, p1, description)   GMOCK_INTERNAL_MATCHER(name, name##MatcherP2, description, (p0, p1))
 
#define MATCHER_P3(name, p0, p1, p2, description)   GMOCK_INTERNAL_MATCHER(name, name##MatcherP3, description, (p0, p1, p2))
 
#define MATCHER_P4(name, p0, p1, p2, p3, description)   GMOCK_INTERNAL_MATCHER(name, name##MatcherP4, description, (p0, p1, p2, p3))
 
#define MATCHER_P5(name, p0, p1, p2, p3, p4, description)
 
#define MATCHER_P6(name, p0, p1, p2, p3, p4, p5, description)
 
#define MATCHER_P7(name, p0, p1, p2, p3, p4, p5, p6, description)
 
#define MATCHER_P8(name, p0, p1, p2, p3, p4, p5, p6, p7, description)
 
#define MATCHER_P9(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, description)
 
#define MATCHER_P10(name, p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, description)
 
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
 
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS(args)
 
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM(i_unused, data_unused, arg)   , typename arg##_type
 
#define GMOCK_INTERNAL_MATCHER_TYPE_PARAMS(args)   GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_TYPE_PARAM, , args))
 
#define GMOCK_INTERNAL_MATCHER_TYPE_PARAM(i_unused, data_unused, arg)   , arg##_type
 
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARGS(args)
 
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARG(i, data_unused, arg)   , arg##_type gmock_p##i
 
#define GMOCK_INTERNAL_MATCHER_FORWARD_ARGS(args)   GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_FORWARD_ARG, , args))
 
#define GMOCK_INTERNAL_MATCHER_FORWARD_ARG(i, data_unused, arg)   , arg(::std::forward<arg##_type>(gmock_p##i))
 
#define GMOCK_INTERNAL_MATCHER_MEMBERS(args)   GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER, , args)
 
#define GMOCK_INTERNAL_MATCHER_MEMBER(i_unused, data_unused, arg)   const arg##_type arg;
 
#define GMOCK_INTERNAL_MATCHER_MEMBERS_USAGE(args)   GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER_USAGE, , args))
 
#define GMOCK_INTERNAL_MATCHER_MEMBER_USAGE(i_unused, data_unused, arg)   , arg
 
#define GMOCK_INTERNAL_MATCHER_ARGS_USAGE(args)   GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_ARG_USAGE, , args))
 
#define GMOCK_INTERNAL_MATCHER_ARG_USAGE(i, data_unused, arg_unused)   , gmock_p##i
 

Functions

 GTEST_DISABLE_MSC_WARNINGS_PUSH_ (4251 GMOCK_MAYBE_5046_) namespace testing
 

Macro Definition Documentation

#define GMOCK_MAYBE_5046_

<< DiffStrings(str, arg);

Definition at line 280 of file gmock-matchers.h.

#define ASSERT_THAT (   value,
  matcher 
)
Value:
::testing::internal::MakePredicateFormatterFromMatcher(matcher), value)
#define ASSERT_PRED_FORMAT1(pred_format, v1)
int value
#define EXPECT_THAT (   value,
  matcher 
)
Value:
::testing::internal::MakePredicateFormatterFromMatcher(matcher), value)
int value
#define EXPECT_PRED_FORMAT1(pred_format, v1)
#define MATCHER (   name,
  description 
)
#define MATCHER_P (   name,
  p0,
  description 
)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP, description, (p0))
#define MATCHER_P2 (   name,
  p0,
  p1,
  description 
)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP2, description, (p0, p1))
#define MATCHER_P3 (   name,
  p0,
  p1,
  p2,
  description 
)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP3, description, (p0, p1, p2))
#define MATCHER_P4 (   name,
  p0,
  p1,
  p2,
  p3,
  description 
)    GMOCK_INTERNAL_MATCHER(name, name##MatcherP4, description, (p0, p1, p2, p3))
#define MATCHER_P5 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP5, description, \
(p0, p1, p2, p3, p4))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
#define MATCHER_P6 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP6, description, \
(p0, p1, p2, p3, p4, p5))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
#define MATCHER_P7 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP7, description, \
(p0, p1, p2, p3, p4, p5, p6))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
#define MATCHER_P8 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP8, description, \
(p0, p1, p2, p3, p4, p5, p6, p7))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
#define MATCHER_P9 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  p8,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP9, description, \
(p0, p1, p2, p3, p4, p5, p6, p7, p8))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
#define MATCHER_P10 (   name,
  p0,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  p7,
  p8,
  p9,
  description 
)
Value:
GMOCK_INTERNAL_MATCHER(name, name##MatcherP10, description, \
(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9))
#define GMOCK_INTERNAL_MATCHER(name, full_name, description, args)
#define GMOCK_INTERNAL_MATCHER (   name,
  full_name,
  description,
  args 
)
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAMS (   args)
Value:
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM(i_unused, data_unused, arg)
#define GMOCK_PP_FOR_EACH(_Macro, _Data, _Tuple)
Definition: gmock-pp.h:131
#define GMOCK_PP_TAIL(...)
Definition: gmock-pp.h:44
#define GMOCK_INTERNAL_MATCHER_TEMPLATE_PARAM (   i_unused,
  data_unused,
  arg 
)    , typename arg##_type
#define GMOCK_INTERNAL_MATCHER_TYPE_PARAMS (   args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_TYPE_PARAM, , args))
#define GMOCK_INTERNAL_MATCHER_TYPE_PARAM (   i_unused,
  data_unused,
  arg 
)    , arg##_type
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARGS (   args)
Value:
#define GMOCK_PP_FOR_EACH(_Macro, _Data, _Tuple)
Definition: gmock-pp.h:131
#define GMOCK_PP_TAIL(...)
Definition: gmock-pp.h:44
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARG(i, data_unused, arg)
#define GMOCK_INTERNAL_MATCHER_FUNCTION_ARG (   i,
  data_unused,
  arg 
)    , arg##_type gmock_p##i
#define GMOCK_INTERNAL_MATCHER_FORWARD_ARGS (   args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_FORWARD_ARG, , args))
#define GMOCK_INTERNAL_MATCHER_FORWARD_ARG (   i,
  data_unused,
  arg 
)    , arg(::std::forward<arg##_type>(gmock_p##i))
#define GMOCK_INTERNAL_MATCHER_MEMBERS (   args)    GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER, , args)
#define GMOCK_INTERNAL_MATCHER_MEMBER (   i_unused,
  data_unused,
  arg 
)    const arg##_type arg;
#define GMOCK_INTERNAL_MATCHER_MEMBERS_USAGE (   args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_MEMBER_USAGE, , args))
#define GMOCK_INTERNAL_MATCHER_MEMBER_USAGE (   i_unused,
  data_unused,
  arg 
)    , arg
#define GMOCK_INTERNAL_MATCHER_ARGS_USAGE (   args)    GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_ARG_USAGE, , args))
#define GMOCK_INTERNAL_MATCHER_ARG_USAGE (   i,
  data_unused,
  arg_unused 
)    , gmock_p##i

Function Documentation

GTEST_DISABLE_MSC_WARNINGS_PUSH_ ( 4251  GMOCK_MAYBE_5046_)

Definition at line 283 of file gmock-matchers.h.