upstreaming cl 124976692
This commit is contained in:
		@@ -44,15 +44,7 @@
 | 
				
			|||||||
#include "gmock/internal/gmock-port.h"
 | 
					#include "gmock/internal/gmock-port.h"
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
#include "gtest/gtest-spi.h"
 | 
					#include "gtest/gtest-spi.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if GTEST_OS_CYGWIN
 | 
					#if GTEST_OS_CYGWIN
 | 
				
			||||||
# include <sys/types.h>  // For ssize_t. NOLINT
 | 
					# include <sys/types.h>  // For ssize_t. NOLINT
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -66,15 +66,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "gtest/gtest-message.h"
 | 
					#include "gtest/gtest-message.h"
 | 
				
			||||||
#include "gtest/internal/gtest-string.h"
 | 
					#include "gtest/internal/gtest-string.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick exists to
 | 
					 | 
				
			||||||
// prevent the accidental inclusion of gtest-internal-inl.h in the
 | 
					 | 
				
			||||||
// user's code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,14 +37,6 @@
 | 
				
			|||||||
#ifndef GTEST_SRC_GTEST_INTERNAL_INL_H_
 | 
					#ifndef GTEST_SRC_GTEST_INTERNAL_INL_H_
 | 
				
			||||||
#define GTEST_SRC_GTEST_INTERNAL_INL_H_
 | 
					#define GTEST_SRC_GTEST_INTERNAL_INL_H_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GTEST_IMPLEMENTATION_ is defined to 1 iff the current translation unit is
 | 
					 | 
				
			||||||
// part of Google Test's implementation; otherwise it's undefined.
 | 
					 | 
				
			||||||
#if !GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
// If this file is included from the user's code, just say no.
 | 
					 | 
				
			||||||
# error "gtest-internal-inl.h is part of Google Test's internal implementation."
 | 
					 | 
				
			||||||
# error "It must not be included except by Google Test itself."
 | 
					 | 
				
			||||||
#endif  // GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifndef _WIN32_WCE
 | 
					#ifndef _WIN32_WCE
 | 
				
			||||||
# include <errno.h>
 | 
					# include <errno.h>
 | 
				
			||||||
#endif  // !_WIN32_WCE
 | 
					#endif  // !_WIN32_WCE
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,15 +67,7 @@
 | 
				
			|||||||
#include "gtest/gtest-message.h"
 | 
					#include "gtest/gtest-message.h"
 | 
				
			||||||
#include "gtest/internal/gtest-internal.h"
 | 
					#include "gtest/internal/gtest-internal.h"
 | 
				
			||||||
#include "gtest/internal/gtest-string.h"
 | 
					#include "gtest/internal/gtest-string.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick exists to
 | 
					 | 
				
			||||||
// prevent the accidental inclusion of gtest-internal-inl.h in the
 | 
					 | 
				
			||||||
// user's code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
namespace internal {
 | 
					namespace internal {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,15 +32,7 @@
 | 
				
			|||||||
// The Google C++ Testing Framework (Google Test)
 | 
					// The Google C++ Testing Framework (Google Test)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "gtest/gtest-test-part.h"
 | 
					#include "gtest/gtest-test-part.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick exists to
 | 
					 | 
				
			||||||
// prevent the accidental inclusion of gtest-internal-inl.h in the
 | 
					 | 
				
			||||||
// user's code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -133,14 +133,7 @@
 | 
				
			|||||||
# include <sys/types.h>  // NOLINT
 | 
					# include <sys/types.h>  // NOLINT
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if GTEST_OS_WINDOWS
 | 
					#if GTEST_OS_WINDOWS
 | 
				
			||||||
# define vsnprintf _vsnprintf
 | 
					# define vsnprintf _vsnprintf
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,15 +56,7 @@ using testing::internal::AlwaysTrue;
 | 
				
			|||||||
# endif  // GTEST_OS_LINUX
 | 
					# endif  // GTEST_OS_LINUX
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# include "gtest/gtest-spi.h"
 | 
					# include "gtest/gtest-spi.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
# define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
# include "src/gtest-internal-inl.h"
 | 
					# include "src/gtest-internal-inl.h"
 | 
				
			||||||
# undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace posix = ::testing::internal::posix;
 | 
					namespace posix = ::testing::internal::posix;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,15 +40,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "gtest/internal/gtest-filepath.h"
 | 
					#include "gtest/internal/gtest-filepath.h"
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if GTEST_OS_WINDOWS_MOBILE
 | 
					#if GTEST_OS_WINDOWS_MOBILE
 | 
				
			||||||
# include <windows.h>  // NOLINT
 | 
					# include <windows.h>  // NOLINT
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -46,14 +46,7 @@
 | 
				
			|||||||
# include <direct.h>
 | 
					# include <direct.h>
 | 
				
			||||||
#endif  // GTEST_OS_WINDOWS_MOBILE
 | 
					#endif  // GTEST_OS_WINDOWS_MOBILE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
namespace internal {
 | 
					namespace internal {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,11 +41,7 @@
 | 
				
			|||||||
# include <sstream>
 | 
					# include <sstream>
 | 
				
			||||||
# include <string>
 | 
					# include <string>
 | 
				
			||||||
# include <vector>
 | 
					# include <vector>
 | 
				
			||||||
 | 
					 | 
				
			||||||
// To include gtest-internal-inl.h.
 | 
					 | 
				
			||||||
# define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
# include "src/gtest-internal-inl.h"  // for UnitTestOptions
 | 
					# include "src/gtest-internal-inl.h"  // for UnitTestOptions
 | 
				
			||||||
# undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# include "test/gtest-param-test_test.h"
 | 
					# include "test/gtest-param-test_test.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,15 +45,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
#include "gtest/gtest-spi.h"
 | 
					#include "gtest/gtest-spi.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
using std::make_pair;
 | 
					using std::make_pair;
 | 
				
			||||||
using std::pair;
 | 
					using std::pair;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,15 +36,7 @@
 | 
				
			|||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
using testing::internal::ShouldUseColor;
 | 
					using testing::internal::ShouldUseColor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,10 +35,7 @@
 | 
				
			|||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <iostream>
 | 
					#include <iostream>
 | 
				
			||||||
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
using ::std::cout;
 | 
					using ::std::cout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,10 +34,7 @@
 | 
				
			|||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1  // Required for the next #include.
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
GTEST_DECLARE_string_(filter);
 | 
					GTEST_DECLARE_string_(filter);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,15 +37,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "gtest/gtest-spi.h"
 | 
					#include "gtest/gtest-spi.h"
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,15 +34,7 @@
 | 
				
			|||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <iostream>
 | 
					#include <iostream>
 | 
				
			||||||
#include "gtest/gtest.h"
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,12 +37,7 @@
 | 
				
			|||||||
#include <iostream>
 | 
					#include <iostream>
 | 
				
			||||||
#include <vector>
 | 
					#include <vector>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// We must define this macro in order to #include
 | 
					 | 
				
			||||||
// gtest-internal-inl.h.  This is how Google Test prevents a user from
 | 
					 | 
				
			||||||
// accidentally depending on its internal implementation.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if GTEST_IS_THREADSAFE
 | 
					#if GTEST_IS_THREADSAFE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -66,15 +66,7 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
 | 
				
			|||||||
#include <ostream>
 | 
					#include <ostream>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "gtest/gtest-spi.h"
 | 
					#include "gtest/gtest-spi.h"
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Indicates that this translation unit is part of Google Test's
 | 
					 | 
				
			||||||
// implementation.  It must come before gtest-internal-inl.h is
 | 
					 | 
				
			||||||
// included, or there will be a compiler error.  This trick is to
 | 
					 | 
				
			||||||
// prevent a user from accidentally including gtest-internal-inl.h in
 | 
					 | 
				
			||||||
// their code.
 | 
					 | 
				
			||||||
#define GTEST_IMPLEMENTATION_ 1
 | 
					 | 
				
			||||||
#include "src/gtest-internal-inl.h"
 | 
					#include "src/gtest-internal-inl.h"
 | 
				
			||||||
#undef GTEST_IMPLEMENTATION_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace testing {
 | 
					namespace testing {
 | 
				
			||||||
namespace internal {
 | 
					namespace internal {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user