F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gmock-port.h File Reference
#include <assert.h>
#include <stdlib.h>
#include <cstdint>
#include <iostream>
#include "gmock/internal/custom/gmock-port.h"
#include "gtest/internal/gtest-port.h"

Go to the source code of this file.

Macros

#define GMOCK_FLAG_NAME_(name)   gmock_##name
 
#define GMOCK_FLAG(name)   FLAGS_gmock_##name
 
#define GMOCK_DEFINE_bool_(name, default_val, doc)
 
#define GMOCK_DEFINE_int32_(name, default_val, doc)
 
#define GMOCK_DEFINE_string_(name, default_val, doc)
 
#define GMOCK_DECLARE_bool_(name)
 
#define GMOCK_DECLARE_int32_(name)
 
#define GMOCK_DECLARE_string_(name)
 
#define GMOCK_FLAG_GET(name)   ::testing::GMOCK_FLAG(name)
 
#define GMOCK_FLAG_SET(name, value)   (void)(::testing::GMOCK_FLAG(name) = value)
 

Macro Definition Documentation

◆ GMOCK_DECLARE_bool_

#define GMOCK_DECLARE_bool_ ( name)
Value:
namespace testing { \
GTEST_API_ extern bool GMOCK_FLAG(name); \
} \
static_assert(true, "no-op to require trailing semicolon")
#define GMOCK_FLAG(name)
Definition gmock-port.h:73

Definition at line 118 of file gmock-port.h.

◆ GMOCK_DECLARE_int32_

#define GMOCK_DECLARE_int32_ ( name)
Value:
namespace testing { \
GTEST_API_ extern int32_t GMOCK_FLAG(name); \
} \
static_assert(true, "no-op to require trailing semicolon")

Definition at line 123 of file gmock-port.h.

◆ GMOCK_DECLARE_string_

#define GMOCK_DECLARE_string_ ( name)
Value:
namespace testing { \
GTEST_API_ extern ::std::string GMOCK_FLAG(name); \
} \
static_assert(true, "no-op to require trailing semicolon")

Definition at line 128 of file gmock-port.h.

◆ GMOCK_DEFINE_bool_

#define GMOCK_DEFINE_bool_ ( name,
default_val,
doc )
Value:
namespace testing { \
GTEST_API_ bool GMOCK_FLAG(name) = (default_val); \
} \
static_assert(true, "no-op to require trailing semicolon")

Definition at line 101 of file gmock-port.h.

◆ GMOCK_DEFINE_int32_

#define GMOCK_DEFINE_int32_ ( name,
default_val,
doc )
Value:
namespace testing { \
GTEST_API_ int32_t GMOCK_FLAG(name) = (default_val); \
} \
static_assert(true, "no-op to require trailing semicolon")

Definition at line 106 of file gmock-port.h.

◆ GMOCK_DEFINE_string_

#define GMOCK_DEFINE_string_ ( name,
default_val,
doc )
Value:
namespace testing { \
GTEST_API_ ::std::string GMOCK_FLAG(name) = (default_val); \
} \
static_assert(true, "no-op to require trailing semicolon")

Definition at line 111 of file gmock-port.h.

◆ GMOCK_FLAG

#define GMOCK_FLAG ( name)    FLAGS_gmock_##name

Definition at line 73 of file gmock-port.h.

◆ GMOCK_FLAG_GET

#define GMOCK_FLAG_GET ( name)    ::testing::GMOCK_FLAG(name)

Definition at line 134 of file gmock-port.h.

◆ GMOCK_FLAG_NAME_

#define GMOCK_FLAG_NAME_ ( name)    gmock_##name

Definition at line 72 of file gmock-port.h.

◆ GMOCK_FLAG_SET

#define GMOCK_FLAG_SET ( name,
value )   (void)(::testing::GMOCK_FLAG(name) = value)

Definition at line 135 of file gmock-port.h.