From 19a8433a604e6105575c08529fc8e0b2947f5af5 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 27 Feb 2019 16:38:36 -0800 Subject: [PATCH] Replace TYPED_TEST_CASE with TYPED_TEST_SUITE. TYPED_TEST_CASE is deprecated in modern googletest. BUG=chromium:936654 Change-Id: I08004ffbb26089ebe17302934ed6d3268220d151 Reviewed-on: https://chromium-review.googlesource.com/c/1493423 Reviewed-by: Mark Mentovai --- src/common/linux/dump_symbols_unittest.cc | 2 +- src/common/linux/file_id_unittest.cc | 2 +- src/common/linux/synth_elf_unittest.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/linux/dump_symbols_unittest.cc b/src/common/linux/dump_symbols_unittest.cc index bb7b2007..f011c8a7 100644 --- a/src/common/linux/dump_symbols_unittest.cc +++ b/src/common/linux/dump_symbols_unittest.cc @@ -85,7 +85,7 @@ class DumpSymbols : public Test { typedef Types ElfClasses; -TYPED_TEST_CASE(DumpSymbols, ElfClasses); +TYPED_TEST_SUITE(DumpSymbols, ElfClasses); TYPED_TEST(DumpSymbols, Invalid) { Elf32_Ehdr header; diff --git a/src/common/linux/file_id_unittest.cc b/src/common/linux/file_id_unittest.cc index e60a87bc..f4f9ac45 100644 --- a/src/common/linux/file_id_unittest.cc +++ b/src/common/linux/file_id_unittest.cc @@ -138,7 +138,7 @@ public: typedef Types ElfClasses; -TYPED_TEST_CASE(FileIDTest, ElfClasses); +TYPED_TEST_SUITE(FileIDTest, ElfClasses); TYPED_TEST(FileIDTest, ElfClass) { const char expected_identifier_string[] = diff --git a/src/common/linux/synth_elf_unittest.cc b/src/common/linux/synth_elf_unittest.cc index 3715b6e6..cd74c286 100644 --- a/src/common/linux/synth_elf_unittest.cc +++ b/src/common/linux/synth_elf_unittest.cc @@ -193,7 +193,7 @@ class BasicElf : public Test {}; typedef Types ElfClasses; -TYPED_TEST_CASE(BasicElf, ElfClasses); +TYPED_TEST_SUITE(BasicElf, ElfClasses); TYPED_TEST(BasicElf, EmptyLE) { typedef typename TypeParam::Ehdr Ehdr;