Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
gmock-spec-builders.h File Reference
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include "gmock/gmock-actions.h"
#include "gmock/gmock-cardinalities.h"
#include "gmock/gmock-matchers.h"
#include "gmock/internal/gmock-internal-utils.h"
#include "gmock/internal/gmock-port.h"
#include "gtest/gtest.h"
Include dependency graph for gmock-spec-builders.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  testing::internal::UntypedFunctionMockerBase
 
class  testing::internal::UntypedOnCallSpecBase
 
class  testing::internal::OnCallSpec< F >
 
class  testing::Mock
 
class  testing::Expectation
 
class  testing::ExpectationSet
 
class  testing::Sequence
 
class  testing::InSequence
 
class  testing::internal::ExpectationBase
 
class  testing::internal::TypedExpectation< F >
 
class  testing::internal::MockSpec< F >
 
class  testing::internal::ReferenceOrValueWrapper< T >
 
class  testing::internal::ReferenceOrValueWrapper< T & >
 
class  testing::internal::UntypedActionResultHolderBase
 
class  testing::internal::ActionResultHolder< T >
 
class  testing::internal::ActionResultHolder< void >
 
class  testing::internal::FunctionMockerBase< F >
 

Namespaces

namespace  testing
 
namespace  testing::internal
 

Macros

#define GMOCK_ON_CALL_IMPL_(mock_expr, Setter, call)
 
#define ON_CALL(obj, call)
 
#define EXPECT_CALL(obj, call)
 

Enumerations

enum  testing::internal::CallReaction { testing::internal::kAllow , testing::internal::kWarn , testing::internal::kFail }
 

Functions

GTEST_API_ testing::internal::GTEST_DECLARE_STATIC_MUTEX_ (g_gmock_mutex)
 
GTEST_API_ void testing::internal::LogWithLocation (testing::internal::LogSeverity severity, const char *file, int line, const std::string &message)
 
void testing::internal::ReportUninterestingCall (CallReaction reaction, const std::string &msg)
 
template<typename T >
const Ttesting::Const (const T &x)
 

Variables

class GTEST_API_ testing::InSequence testing::GTEST_ATTRIBUTE_UNUSED_
 
GTEST_API_ ThreadLocal< Sequence * > testing::internal::g_gmock_implicit_sequence
 

Macro Definition Documentation

◆ EXPECT_CALL

#define EXPECT_CALL ( obj,
call )
Value:
GMOCK_ON_CALL_IMPL_(obj, InternalExpectedAt, call)
#define GMOCK_ON_CALL_IMPL_(mock_expr, Setter, call)
fc::variant call(const std::string &url, const std::string &path, const T &v)
Definition main.cpp:258

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

1915#define EXPECT_CALL(obj, call) \
1916 GMOCK_ON_CALL_IMPL_(obj, InternalExpectedAt, call)

◆ GMOCK_ON_CALL_IMPL_

#define GMOCK_ON_CALL_IMPL_ ( mock_expr,
Setter,
call )
Value:
((mock_expr).gmock_##call)(::testing::internal::GetWithoutMatchers(), NULL) \
.Setter(__FILE__, __LINE__, #mock_expr, #call)
GTEST_API_ WithoutMatchers GetWithoutMatchers()

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

1908#define GMOCK_ON_CALL_IMPL_(mock_expr, Setter, call) \
1909 ((mock_expr).gmock_##call)(::testing::internal::GetWithoutMatchers(), NULL) \
1910 .Setter(__FILE__, __LINE__, #mock_expr, #call)

◆ ON_CALL

#define ON_CALL ( obj,
call )
Value:
GMOCK_ON_CALL_IMPL_(obj, InternalDefaultActionSetAt, call)

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

1912#define ON_CALL(obj, call) \
1913 GMOCK_ON_CALL_IMPL_(obj, InternalDefaultActionSetAt, call)