summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/getdents.cc
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2019-04-29 11:32:48 -0700
committerShentubot <shentubot@google.com>2019-04-29 11:34:16 -0700
commitac8fca1ef44ee5ceb1fa454d52f41178a4d66f79 (patch)
tree7f8f9582ccb73759eedf753f6d17f289b47847ac /test/syscalls/linux/getdents.cc
parent2df64cd6d2c835ce5b37a8b9111d24ad382b5d3d (diff)
Appease googletest deprecation
PiperOrigin-RevId: 245788366 Change-Id: I17bbecf8493132dbe95564c34c45b838194bfabb
Diffstat (limited to 'test/syscalls/linux/getdents.cc')
-rw-r--r--test/syscalls/linux/getdents.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/syscalls/linux/getdents.cc b/test/syscalls/linux/getdents.cc
index 526925599..e8a7bcd43 100644
--- a/test/syscalls/linux/getdents.cc
+++ b/test/syscalls/linux/getdents.cc
@@ -224,8 +224,8 @@ class GetdentsTest : public ::testing::Test {
FileDescriptor fd_;
};
-// GUnit TYPED_TEST_CASE does not allow multiple template parameters, so we
-// must use explicit template specialization to set the syscall number.
+// Multiple template parameters are not allowed, so we must use explicit
+// template specialization to set the syscall number.
template <>
int GetdentsTest<struct linux_dirent>::SyscallNum() {
return SYS_getdents;
@@ -239,7 +239,7 @@ int GetdentsTest<struct linux_dirent64>::SyscallNum() {
// Test both legacy getdents and getdents64.
typedef ::testing::Types<struct linux_dirent, struct linux_dirent64>
GetdentsTypes;
-TYPED_TEST_CASE(GetdentsTest, GetdentsTypes);
+TYPED_TEST_SUITE(GetdentsTest, GetdentsTypes);
// N.B. TYPED_TESTs require explicitly using this-> to access members of
// GetdentsTest, since we are inside of a derived class template.