Xmipp  v3.23.11-Nereus
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
gmock-internal-utils.h File Reference
#include <stdio.h>
#include <ostream>
#include <string>
#include <type_traits>
#include <vector>
#include "gmock/internal/gmock-port.h"
#include "gtest/gtest.h"
Include dependency graph for gmock-internal-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  testing::Matcher< typename >
 
struct  testing::internal::KindOf< T >
 
class  testing::internal::FailureReporterInterface
 
class  testing::internal::WithoutMatchers
 
class  testing::internal::StlContainerView< RawContainer >
 
class  testing::internal::StlContainerView< Element[N]>
 
class  testing::internal::StlContainerView< ::std::tuple< ElementPointer, Size > >
 
struct  testing::internal::RemoveConstFromKey< T >
 
struct  testing::internal::RemoveConstFromKey< std::pair< const K, V > >
 
struct  testing::internal::Function< T >
 
struct  testing::internal::Function< R(Args...)>
 

Namespaces

 testing
 
 testing::internal
 

Macros

#define GMOCK_INTERNAL_WARNING_PUSH()
 
#define GMOCK_INTERNAL_WARNING_CLANG(Level, Name)
 
#define GMOCK_INTERNAL_WARNING_POP()
 
#define GMOCK_WCHAR_T_IS_NATIVE_   1
 
#define GMOCK_DECLARE_KIND_(type, kind)
 
#define GMOCK_KIND_OF_(type)
 

Typedefs

template<TypeKind kFromKind, typename From , TypeKind kToKind, typename To >
using testing::internal::LosslessArithmeticConvertibleImpl = std::integral_constant< bool,(kFromKind==kBool) ? true :(kFromKind !=kToKind) ? false :(kFromKind==kInteger &&(((sizeof(From)< sizeof(To)) &&!(std::is_signed< From >::value &&!std::is_signed< To >::value))||((sizeof(From)==sizeof(To)) &&(std::is_signed< From >::value==std::is_signed< To >::value)))) ? true :(kFromKind==kFloatingPoint &&(sizeof(From)<=sizeof(To))) ? true :false >
 
template<typename From , typename To >
using testing::internal::LosslessArithmeticConvertible = LosslessArithmeticConvertibleImpl< GMOCK_KIND_OF_(From), From, GMOCK_KIND_OF_(To), To >
 
template<size_t I, typename T >
using testing::internal::TupleElement = typename std::tuple_element< I, T >::type
 

Enumerations

enum  testing::internal::TypeKind { testing::internal::kBool, testing::internal::kInteger, testing::internal::kFloatingPoint, testing::internal::kOther }
 
enum  testing::internal::LogSeverity { testing::internal::kInfo = 0, testing::internal::kWarning = 1 }
 

Functions

GTEST_API_ std::string testing::internal::JoinAsKeyValueTuple (const std::vector< const char *> &names, const Strings &values)
 
GTEST_API_ std::string testing::internal::ConvertIdentifierNameToWords (const char *id_name)
 
template<typename Pointer >
const Pointer::element_type * testing::internal::GetRawPointer (const Pointer &p)
 
template<typename Element >
const Elementtesting::internal::GetRawPointer (const std::reference_wrapper< Element > &r)
 
template<typename Element >
Elementtesting::internal::GetRawPointer (Element *p)
 
 testing::internal::GMOCK_DECLARE_KIND_ (bool, kBool)
 
 testing::internal::GMOCK_DECLARE_KIND_ (char, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (signed char, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (unsigned char, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (short, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (int, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (long, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (unsigned long long, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (wchar_t, kInteger)
 
 testing::internal::GMOCK_DECLARE_KIND_ (float, kFloatingPoint)
 
 testing::internal::GMOCK_DECLARE_KIND_ (double, kFloatingPoint)
 
 testing::internal::GMOCK_DECLARE_KIND_ (long double, kFloatingPoint)
 
GTEST_API_ FailureReporterInterface * testing::internal::GetFailureReporter ()
 
void testing::internal::Assert (bool condition, const char *file, int line, const std::string &msg)
 
void testing::internal::Assert (bool condition, const char *file, int line)
 
void testing::internal::Expect (bool condition, const char *file, int line, const std::string &msg)
 
void testing::internal::Expect (bool condition, const char *file, int line)
 
GTEST_API_ bool testing::internal::LogIsVisible (LogSeverity severity)
 
GTEST_API_ void testing::internal::Log (LogSeverity severity, const std::string &message, int stack_frames_to_skip)
 
GTEST_API_ WithoutMatchers testing::internal::GetWithoutMatchers ()
 
template<typename T >
testing::internal::Invalid ()
 
GTEST_API_ void testing::internal::IllegalDoDefault (const char *file, int line)
 
template<typename F , typename Tuple , size_t... Idx>
auto testing::internal::ApplyImpl (F &&f, Tuple &&args, IndexSequence< Idx... >) -> decltype(std::forward< F >(f)(std::get< Idx >(std::forward< Tuple >(args))...))
 
template<typename F , typename Tuple >
auto testing::internal::Apply (F &&f, Tuple &&args) -> decltype(ApplyImpl(std::forward< F >(f), std::forward< Tuple >(args), MakeIndexSequence< std::tuple_size< typename std::remove_reference< Tuple >::type >::value >()))
 
bool testing::internal::Base64Unescape (const std::string &encoded, std::string *decoded)
 

Variables

const char testing::internal::kInfoVerbosity [] = "info"
 
const char testing::internal::kWarningVerbosity [] = "warning"
 
const char testing::internal::kErrorVerbosity [] = "error"
 

Macro Definition Documentation

◆ GMOCK_DECLARE_KIND_

#define GMOCK_DECLARE_KIND_ (   type,
  kind 
)
Value:
template <> \
struct KindOf<type> { \
enum { value = kind }; \
}

Definition at line 140 of file gmock-internal-utils.h.

◆ GMOCK_INTERNAL_WARNING_CLANG

#define GMOCK_INTERNAL_WARNING_CLANG (   Level,
  Name 
)

Definition at line 103 of file gmock-internal-utils.h.

◆ GMOCK_INTERNAL_WARNING_POP

#define GMOCK_INTERNAL_WARNING_POP ( )

Definition at line 104 of file gmock-internal-utils.h.

◆ GMOCK_INTERNAL_WARNING_PUSH

#define GMOCK_INTERNAL_WARNING_PUSH ( )

Definition at line 102 of file gmock-internal-utils.h.

◆ GMOCK_KIND_OF_

#define GMOCK_KIND_OF_ (   type)

◆ GMOCK_WCHAR_T_IS_NATIVE_

#define GMOCK_WCHAR_T_IS_NATIVE_   1

Definition at line 123 of file gmock-internal-utils.h.