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.
This commit is contained in:
Petr Hosek
2018-03-14 11:32:34 -07:00
committed by GitHub
parent 69d5d6b1b0
commit 84293f06da
8 changed files with 7 additions and 10 deletions

3
DEPS
View File

@@ -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',

View File

@@ -10,7 +10,7 @@
#include <cmath>
#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();

View File

@@ -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"

View File

@@ -12,7 +12,7 @@ source_set("testing") {
]
public_deps = [
"//third_party/gtest",
"//third_party/googletest:gtest",
]
public_configs = [ "$flutter_root:config" ]

View File

@@ -177,7 +177,7 @@ executable("txt_unittests") {
deps = [
":txt",
"//third_party/gtest",
"//third_party/googletest:gtest",
] + txt_common_executable_deps
}

View File

@@ -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"

View File

@@ -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"

View File

@@ -21,7 +21,7 @@
#include <vector>
#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 {