Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dea0216d0c | ||
![]() |
aafc594a43 | ||
![]() |
4fe76c4d6e | ||
![]() |
049a0d74b0 | ||
![]() |
987e7f346a | ||
![]() |
be8475fdf7 | ||
![]() |
aea0d17e85 | ||
![]() |
d2b89946f8 | ||
![]() |
542e057c6c | ||
![]() |
b8c4997b87 | ||
![]() |
30d325023c | ||
![]() |
792b475b9b | ||
![]() |
e1d41f3f9f | ||
![]() |
a2a15f2cef |
@ -5,7 +5,7 @@ if (POLICY CMP0048)
|
||||
endif (POLICY CMP0048)
|
||||
|
||||
project(googletest-distribution)
|
||||
set(GOOGLETEST_VERSION 1.9.0)
|
||||
set(GOOGLETEST_VERSION 1.8.2)
|
||||
|
||||
enable_testing()
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
workspace(name = "com_google_googletest")
|
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
# Abseil
|
||||
http_archive(
|
||||
name = "com_google_absl",
|
||||
|
@ -1,5 +1,5 @@
|
||||
AC_INIT([Google C++ Mocking and Testing Frameworks],
|
||||
[1.9.0],
|
||||
[1.8.2],
|
||||
[googlemock@googlegroups.com],
|
||||
[googletest])
|
||||
|
||||
|
@ -56,11 +56,17 @@
|
||||
# include <initializer_list> // NOLINT -- must be after gtest.h
|
||||
#endif
|
||||
|
||||
#if _MSC_VER >= 1900
|
||||
GTEST_DISABLE_MSC_WARNINGS_PUSH_(
|
||||
4251 5046 /* class A needs to have dll-interface to be used by clients of
|
||||
class B */
|
||||
/* Symbol involving type with internal linkage not defined */)
|
||||
|
||||
#else //Pragma 5046 doesn't exist in version of MSC prior to 1900
|
||||
GTEST_DISABLE_MSC_WARNINGS_PUSH_(
|
||||
4251 /* class A needs to have dll-interface to be used by clients of
|
||||
class B */
|
||||
/* Symbol involving type with internal linkage not defined */)
|
||||
#endif
|
||||
namespace testing {
|
||||
|
||||
// To implement a matcher Foo for type T, define:
|
||||
@ -3027,7 +3033,7 @@ class PointwiseMatcher {
|
||||
operator Matcher<LhsContainer>() const {
|
||||
GTEST_COMPILE_ASSERT_(
|
||||
!IsHashTable<GTEST_REMOVE_REFERENCE_AND_CONST_(LhsContainer)>::value,
|
||||
use_UnorderedPointwise_with_hash_tables);
|
||||
use_UnorderedPointwise_with_hash_tables_);
|
||||
|
||||
return MakeMatcher(new Impl<LhsContainer>(tuple_matcher_, rhs_));
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ macro(fix_default_compiler_settings_)
|
||||
# This replacement code is taken from sample in the CMake Wiki at
|
||||
# https://gitlab.kitware.com/cmake/community/wikis/FAQ#dynamic-replace.
|
||||
foreach (flag_var
|
||||
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
|
||||
if (NOT BUILD_SHARED_LIBS AND NOT gtest_force_shared_crt)
|
||||
|
@ -983,7 +983,11 @@ struct TuplePolicy {
|
||||
|
||||
template <size_t I>
|
||||
static typename AddReference<const typename ::std::tr1::tuple_element<
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
I, Tuple>::type>::type
|
||||
#else
|
||||
static_cast<int>(I), Tuple>::type>::type
|
||||
#endif
|
||||
get(const Tuple& tuple) {
|
||||
return ::std::tr1::get<I>(tuple);
|
||||
}
|
||||
|
@ -271,7 +271,14 @@
|
||||
#ifndef _WIN32_WCE
|
||||
# include <sys/types.h>
|
||||
# include <sys/stat.h>
|
||||
#endif // !_WIN32_WCE
|
||||
#elif _WIN32_WCE >= 0x800 // Windows Embedded Compact 2013
|
||||
// Forward declare instead of including <windows.h> / <windef.h> / <winnt.h>
|
||||
typedef wchar_t WCHAR;
|
||||
typedef WCHAR *PWCHAR, *LPWCH, *PWCH;
|
||||
typedef const WCHAR *LPCWCH, *PCWCH;
|
||||
typedef __readableTo(sentinel(0)) const WCHAR *LPCWSTR, *PCWSTR;
|
||||
typedef const WCHAR *LPCWCHAR, *PCWCHAR;
|
||||
#endif
|
||||
|
||||
#if defined __APPLE__
|
||||
# include <AvailabilityMacros.h>
|
||||
@ -430,6 +437,8 @@
|
||||
// MinGW defined _CRITICAL_SECTION and _RTL_CRITICAL_SECTION as two
|
||||
// separate (equivalent) structs, instead of using typedef
|
||||
typedef struct _CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
||||
#elif _WIN32_WCE >= 0x800
|
||||
typedef struct CRITICAL_SECTION GTEST_CRITICAL_SECTION;
|
||||
#else
|
||||
// Assume CRITICAL_SECTION is a typedef of _RTL_CRITICAL_SECTION.
|
||||
// This assumption is verified by
|
||||
@ -2468,7 +2477,7 @@ inline char* StrDup(const char* src) { return _strdup(src); }
|
||||
# endif // __BORLANDC__
|
||||
|
||||
# if GTEST_OS_WINDOWS_MOBILE
|
||||
inline int FileNo(FILE* file) { return reinterpret_cast<int>(_fileno(file)); }
|
||||
inline int FileNo(FILE* file) { return static_cast<int>(_fileno(file)); }
|
||||
// Stat(), RmDir(), and IsDir() are not needed on Windows CE at this
|
||||
// time and thus not defined there.
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user