[netd] fix deprecation warning
Fixes:
//system/netd/server:netd_unit_test clang-tidy IptablesRestoreControllerTest.cpp
/android0/aosp/system/netd/server/IptablesRestoreControllerTest.cpp:58:15:
warning: Google Test APIs named with 'case' are deprecated; use
equivalent APIs named with 'suite' [google-upgrade-googletest-case]
static void SetUpTestCase() {
^~~~~~~~~~~~~
SetUpTestSuite
Test: mm
Change-Id: Idfbc436cf15a96879165266edc51a5d6f45bd1c6
diff --git a/server/IptablesRestoreControllerTest.cpp b/server/IptablesRestoreControllerTest.cpp
index c9028df..20f6183 100644
--- a/server/IptablesRestoreControllerTest.cpp
+++ b/server/IptablesRestoreControllerTest.cpp
@@ -55,9 +55,7 @@
int mIptablesLock = -1;
std::string mChainName;
- static void SetUpTestCase() {
- blockSigpipe();
- }
+ static void SetUpTestSuite() { blockSigpipe(); }
void SetUp() {
ASSERT_EQ(0, createTestChain());