From 84293f06da6e8cbe63332d6c9ac8d6d0ef3ccd56 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Wed, 14 Mar 2018 11:32:34 -0700 Subject: [PATCH] Migrate all uses of gtest to googletest (flutter/engine#4755) gtest is an old version that predates the googletest and googlemock merger, all tests should be using the newer googletest that's being kept in sync with the upstream version. --- DEPS | 3 --- engine/src/flutter/flow/matrix_decomposition_unittests.cc | 2 +- engine/src/flutter/flow/raster_cache_unittests.cc | 2 +- engine/src/flutter/testing/BUILD.gn | 2 +- engine/src/flutter/third_party/txt/BUILD.gn | 2 +- engine/src/flutter/third_party/txt/src/txt/font_collection.h | 2 +- engine/src/flutter/third_party/txt/src/txt/paragraph.h | 2 +- engine/src/flutter/third_party/txt/src/txt/styled_runs.h | 2 +- 8 files changed, 7 insertions(+), 10 deletions(-) diff --git a/DEPS b/DEPS index acfdad1ee1..364c4c7461 100644 --- a/DEPS +++ b/DEPS @@ -132,9 +132,6 @@ deps = { 'src/third_party/benchmark': Var('fuchsia_git') + '/third_party/benchmark' + '@' + '296537bc48d380adf21567c5d736ab79f5363d22', - 'src/third_party/gtest': - Var('fuchsia_git') + '/third_party/gtest' + '@' + 'c00f82917331efbbd27124b537e4ccc915a02b72', - 'src/third_party/googletest': Var('fuchsia_git') + '/third_party/googletest' + '@' + '2072b0053d3537fa5e8d222e34c759987aae1320', diff --git a/engine/src/flutter/flow/matrix_decomposition_unittests.cc b/engine/src/flutter/flow/matrix_decomposition_unittests.cc index 87ed5df08b..37a6322b24 100644 --- a/engine/src/flutter/flow/matrix_decomposition_unittests.cc +++ b/engine/src/flutter/flow/matrix_decomposition_unittests.cc @@ -10,7 +10,7 @@ #include #include "flutter/flow/matrix_decomposition.h" -#include "third_party/gtest/include/gtest/gtest.h" +#include "gtest/gtest.h" TEST(MatrixDecomposition, Rotation) { SkMatrix44 matrix = SkMatrix44::I(); diff --git a/engine/src/flutter/flow/raster_cache_unittests.cc b/engine/src/flutter/flow/raster_cache_unittests.cc index cadf168e77..0033d475b4 100644 --- a/engine/src/flutter/flow/raster_cache_unittests.cc +++ b/engine/src/flutter/flow/raster_cache_unittests.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "flutter/flow/raster_cache.h" -#include "third_party/gtest/include/gtest/gtest.h" +#include "gtest/gtest.h" #include "third_party/skia/include/core/SkPicture.h" #include "third_party/skia/include/core/SkPictureRecorder.h" diff --git a/engine/src/flutter/testing/BUILD.gn b/engine/src/flutter/testing/BUILD.gn index 32a34254a1..3927e71cfc 100644 --- a/engine/src/flutter/testing/BUILD.gn +++ b/engine/src/flutter/testing/BUILD.gn @@ -12,7 +12,7 @@ source_set("testing") { ] public_deps = [ - "//third_party/gtest", + "//third_party/googletest:gtest", ] public_configs = [ "$flutter_root:config" ] diff --git a/engine/src/flutter/third_party/txt/BUILD.gn b/engine/src/flutter/third_party/txt/BUILD.gn index 7731f6d741..26edd3fdbf 100644 --- a/engine/src/flutter/third_party/txt/BUILD.gn +++ b/engine/src/flutter/third_party/txt/BUILD.gn @@ -177,7 +177,7 @@ executable("txt_unittests") { deps = [ ":txt", - "//third_party/gtest", + "//third_party/googletest:gtest", ] + txt_common_executable_deps } diff --git a/engine/src/flutter/third_party/txt/src/txt/font_collection.h b/engine/src/flutter/third_party/txt/src/txt/font_collection.h index d3ddacc385..4da4e3d025 100644 --- a/engine/src/flutter/third_party/txt/src/txt/font_collection.h +++ b/engine/src/flutter/third_party/txt/src/txt/font_collection.h @@ -24,7 +24,7 @@ #include "lib/fxl/macros.h" #include "minikin/FontCollection.h" #include "minikin/FontFamily.h" -#include "third_party/gtest/include/gtest/gtest_prod.h" +#include "third_party/googletest/googletest/include/gtest/gtest_prod.h" // nogncheck #include "third_party/skia/include/core/SkRefCnt.h" #include "third_party/skia/include/ports/SkFontMgr.h" #include "txt/asset_font_manager.h" diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph.h b/engine/src/flutter/third_party/txt/src/txt/paragraph.h index 70ec150c44..eabcc431b4 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph.h +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph.h @@ -28,7 +28,7 @@ #include "paint_record.h" #include "paragraph_style.h" #include "styled_runs.h" -#include "third_party/gtest/include/gtest/gtest_prod.h" +#include "third_party/googletest/googletest/include/gtest/gtest_prod.h" // nogncheck #include "third_party/skia/include/core/SkRect.h" #include "utils/WindowsUtils.h" diff --git a/engine/src/flutter/third_party/txt/src/txt/styled_runs.h b/engine/src/flutter/third_party/txt/src/txt/styled_runs.h index 62ad9b10ef..24669e098c 100644 --- a/engine/src/flutter/third_party/txt/src/txt/styled_runs.h +++ b/engine/src/flutter/third_party/txt/src/txt/styled_runs.h @@ -21,7 +21,7 @@ #include #include "text_style.h" -#include "third_party/gtest/include/gtest/gtest_prod.h" +#include "third_party/googletest/googletest/include/gtest/gtest_prod.h" // nogncheck #include "utils/WindowsUtils.h" namespace txt {