Bazaar: Fix GTest to compile on Windows.

git-svn-id: svn://ultimatepp.org/upp/trunk@14930 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2020-08-29 15:42:22 +00:00
parent 7765bfed6a
commit 1f56cdb57b
20 changed files with 43 additions and 43 deletions

View file

@ -30,12 +30,12 @@
//
// This file implements death tests.
#include "gtest/gtest-death-test.h"
#include "gtest-death-test.h"
#include <utility>
#include "gtest/internal/gtest-port.h"
#include "gtest/internal/custom/gtest.h"
#include "internal/gtest-port.h"
#include "internal/custom/gtest.h"
#if GTEST_HAS_DEATH_TEST

View file

@ -27,11 +27,11 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "gtest/internal/gtest-filepath.h"
#include "internal/gtest-filepath.h"
#include <stdlib.h>
#include "gtest/internal/gtest-port.h"
#include "gtest/gtest-message.h"
#include "internal/gtest-port.h"
#include "gtest-message.h"
#if GTEST_OS_WINDOWS_MOBILE
# include <windows.h>
@ -43,7 +43,7 @@
# include <climits> // Some Linux distributions define PATH_MAX here.
#endif // GTEST_OS_WINDOWS_MOBILE
#include "gtest/internal/gtest-string.h"
#include "internal/gtest-string.h"
#if GTEST_OS_WINDOWS
# define GTEST_PATH_MAX_ _MAX_PATH

View file

@ -32,9 +32,9 @@
// This file implements just enough of the matcher interface to allow
// EXPECT_DEATH and friends to accept a matcher argument.
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-port.h"
#include "gtest/gtest-matchers.h"
#include "internal/gtest-internal.h"
#include "internal/gtest-port.h"
#include "gtest-matchers.h"
#include <string>

View file

@ -44,9 +44,9 @@
#include <string>
#include <type_traits>
#include "gtest/gtest-printers.h"
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-port.h"
#include "gtest-printers.h"
#include "internal/gtest-internal.h"
#include "internal/gtest-port.h"
// MSVC warning C5046 is new as of VS2017 version 15.8.
#if defined(_MSC_VER) && _MSC_VER >= 1915

View file

@ -177,9 +177,9 @@ TEST_P(DerivedTest, DoesBlah) {
#include <iterator>
#include <utility>
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-param-util.h"
#include "gtest/internal/gtest-port.h"
#include "internal/gtest-internal.h"
#include "internal/gtest-param-util.h"
#include "internal/gtest-port.h"
namespace testing {

View file

@ -28,7 +28,7 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "gtest/internal/gtest-port.h"
#include "internal/gtest-port.h"
#include <limits.h>
#include <stdio.h>

View file

@ -41,7 +41,7 @@
// or void PrintTo(const Foo&, ::std::ostream*) in the namespace that
// defines Foo.
#include "gtest/gtest-printers.h"
#include "gtest-printers.h"
#include <stdio.h>
#include <cctype>
#include <cwchar>

View file

@ -923,6 +923,6 @@ template <typename T>
// Include any custom printer added by the local installation.
// We must include this header at the end to make sure it can use the
// declarations from this file.
#include "gtest/internal/custom/gtest-printers.h"
#include "internal/custom/gtest-printers.h"
#endif // GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_

View file

@ -30,7 +30,7 @@
//
// The Google C++ Testing and Mocking Framework (Google Test)
#include "gtest/gtest-test-part.h"
#include "gtest-test-part.h"
#include "gtest-internal-inl.h"
namespace testing {

View file

@ -28,9 +28,9 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "gtest/gtest-typed-test.h"
#include "gtest-typed-test.h"
#include "gtest/gtest.h"
#include "gtest.h"
namespace testing {
namespace internal {

View file

@ -170,8 +170,8 @@ INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes);
#endif // 0
#include "gtest/internal/gtest-port.h"
#include "gtest/internal/gtest-type-util.h"
#include "internal/gtest-port.h"
#include "internal/gtest-type-util.h"
// Implements typed tests.

View file

@ -30,9 +30,9 @@
//
// The Google C++ Testing and Mocking Framework (Google Test)
#include "gtest/gtest.h"
#include "gtest/internal/custom/gtest.h"
#include "gtest/gtest-spi.h"
#include "gtest.h"
#include "internal/custom/gtest.h"
#include "gtest-spi.h"
#include <ctype.h>
#include <math.h>

View file

@ -373,7 +373,7 @@ GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
// Includes the auto-generated header that implements a family of generic
// predicate assertion macros. This include comes late because it relies on
// APIs declared above.
#include "gtest/gtest_pred_impl.h"
#include "gtest_pred_impl.h"
namespace testing {

View file

@ -36,8 +36,8 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#include "gtest/gtest-matchers.h"
#include "gtest/internal/gtest-internal.h"
#include "../gtest-matchers.h"
#include "gtest-internal.h"
#include <stdio.h>
#include <memory>

View file

@ -40,7 +40,7 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#include "gtest/internal/gtest-string.h"
#include "gtest-string.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \
/* class A needs to have dll-interface to be used by clients of class B */)

View file

@ -37,7 +37,7 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#include "gtest/internal/gtest-port.h"
#include "gtest-port.h"
#if GTEST_OS_LINUX
# include <stdlib.h>
@ -61,10 +61,10 @@
#include <type_traits>
#include <vector>
#include "gtest/gtest-message.h"
#include "gtest/internal/gtest-filepath.h"
#include "gtest/internal/gtest-string.h"
#include "gtest/internal/gtest-type-util.h"
#include "../gtest-message.h"
#include "gtest-filepath.h"
#include "gtest-string.h"
#include "gtest-type-util.h"
// Due to C++ preprocessor weirdness, we need double indirection to
// concatenate two tokens when one of them is __LINE__. Writing

View file

@ -45,9 +45,9 @@
#include <utility>
#include <vector>
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-port.h"
#include "gtest/gtest-printers.h"
#include "gtest-internal.h"
#include "gtest-port.h"
#include "../gtest-printers.h"
namespace testing {
// Input to a parameterized test name generator, describing a test parameter.

View file

@ -269,8 +269,8 @@
#include <utility>
#include <vector> // NOLINT
#include "gtest/internal/gtest-port-arch.h"
#include "gtest/internal/custom/gtest-port.h"
#include "gtest-port-arch.h"
#include "custom/gtest-port.h"
#if !defined(GTEST_DEV_EMAIL_)
# define GTEST_DEV_EMAIL_ "googletestframework@@googlegroups.com"

View file

@ -49,7 +49,7 @@
#include <string.h>
#include <string>
#include "gtest/internal/gtest-port.h"
#include "gtest-port.h"
namespace testing {
namespace internal {

View file

@ -44,7 +44,7 @@
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#include "gtest/internal/gtest-port.h"
#include "gtest-port.h"
// #ifdef __GNUC__ is too general here. It is possible to use gcc without using
// libstdc++ (which is where cxxabi.h comes from).