Macros
googletest/googlemock/include/gmock/internal/gmock-port.h File Reference
#include <assert.h>
#include <stdlib.h>
#include <cstdint>
#include <iostream>
#include "gtest/internal/gtest-port.h"
#include "gmock/internal/custom/gmock-port.h"
Include dependency graph for googletest/googlemock/include/gmock/internal/gmock-port.h:

Go to the source code of this file.

Macros

#define GMOCK_DECLARE_bool_(name)
 
#define GMOCK_DECLARE_int32_(name)
 
#define GMOCK_DECLARE_string_(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_FLAG(name)   FLAGS_gmock_##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")

Definition at line 72 of file googletest/googlemock/include/gmock/internal/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 76 of file googletest/googlemock/include/gmock/internal/gmock-port.h.

◆ GMOCK_DECLARE_string_

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

Definition at line 80 of file googletest/googlemock/include/gmock/internal/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 86 of file googletest/googlemock/include/gmock/internal/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 90 of file googletest/googlemock/include/gmock/internal/gmock-port.h.

◆ GMOCK_DEFINE_string_

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

Definition at line 94 of file googletest/googlemock/include/gmock/internal/gmock-port.h.

◆ GMOCK_FLAG

#define GMOCK_FLAG (   name)    FLAGS_gmock_##name

◆ GMOCK_FLAG_GET

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

◆ GMOCK_FLAG_SET

#define GMOCK_FLAG_SET (   name,
  value 
)    (void)(::testing::GMOCK_FLAG(name) = value)
testing
Definition: aws_request_signer_test.cc:25
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
setup.name
name
Definition: setup.py:542
GMOCK_FLAG
#define GMOCK_FLAG(name)
Definition: googletest/googlemock/include/gmock/internal/gmock-port.h:67
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:14