summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/proc.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/proc.cc
parent2df64cd6d2c835ce5b37a8b9111d24ad382b5d3d (diff)
Appease googletest deprecation
PiperOrigin-RevId: 245788366 Change-Id: I17bbecf8493132dbe95564c34c45b838194bfabb
Diffstat (limited to 'test/syscalls/linux/proc.cc')
-rw-r--r--test/syscalls/linux/proc.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/syscalls/linux/proc.cc b/test/syscalls/linux/proc.cc
index a55ecaef1..3ec31ae8b 100644
--- a/test/syscalls/linux/proc.cc
+++ b/test/syscalls/linux/proc.cc
@@ -904,8 +904,8 @@ TEST_P(ProcPidStatTest, HasBasicFields) {
EXPECT_GT(rsslim, 0);
}
-INSTANTIATE_TEST_CASE_P(SelfAndNumericPid, ProcPidStatTest,
- ::testing::Values("self", absl::StrCat(getpid())));
+INSTANTIATE_TEST_SUITE_P(SelfAndNumericPid, ProcPidStatTest,
+ ::testing::Values("self", absl::StrCat(getpid())));
using ProcPidStatmTest = ::testing::TestWithParam<std::string>;
@@ -925,8 +925,8 @@ TEST_P(ProcPidStatmTest, HasBasicFields) {
EXPECT_GT(rss, 0);
}
-INSTANTIATE_TEST_CASE_P(SelfAndNumericPid, ProcPidStatmTest,
- ::testing::Values("self", absl::StrCat(getpid())));
+INSTANTIATE_TEST_SUITE_P(SelfAndNumericPid, ProcPidStatmTest,
+ ::testing::Values("self", absl::StrCat(getpid())));
PosixErrorOr<uint64_t> CurrentRSS() {
ASSIGN_OR_RETURN_ERRNO(auto proc_self_stat, GetContents("/proc/self/stat"));