Loading wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h +14 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,14 @@ typename functionArgSaver<CallbackT>::StorageT invokeMethod( EXPECT_TRUE(res.isOk()); return result_buffer.saved_values; } // Invokes |void method| on |object| without arguments. template <typename MethodT, typename ObjectT> void invokeVoidMethodWithoutArguments(MethodT method, ObjectT object) { const auto& res = ((*object).*method)(); EXPECT_TRUE(res.isOk()); } } // namespace detail } // namespace Loading Loading @@ -123,3 +131,9 @@ typename functionArgSaver<CallbackT>::StorageT invokeMethod( std::remove_reference<decltype(*strong_pointer)>::type::method##_cb>( \ &std::remove_reference<decltype(*strong_pointer)>::type::method, \ strong_pointer, ##__VA_ARGS__)) // Invokes |void method| on |strong_pointer| without arguments. #define HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(strong_pointer, method) \ (detail::invokeVoidMethodWithoutArguments( \ &std::remove_reference<decltype(*strong_pointer)>::type::method, \ strong_pointer)) wifi/hostapd/1.0/vts/functional/hostapd_hidl_test.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,10 @@ class HostapdHidlTest ASSERT_NE(hostapd_.get(), nullptr); } virtual void TearDown() override { stopHostapd(wifi_instance_name_); } virtual void TearDown() override { HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(hostapd_, terminate); stopHostapd(wifi_instance_name_); } protected: std::string getPrimaryWlanIfaceName() { Loading wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,10 @@ class HostapdHidlTest ASSERT_NE(hostapd_.get(), nullptr); } virtual void TearDown() override { stopHostapd(wifi_instance_name_); } virtual void TearDown() override { HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(hostapd_, terminate); stopHostapd(wifi_instance_name_); } protected: std::string getPrimaryWlanIfaceName() { Loading wifi/hostapd/1.2/vts/functional/hostapd_hidl_test.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,10 @@ class HostapdHidlTest "wifi_softap_wpa3_sae_supported"); } virtual void TearDown() override { stopHostapd(wifi_instance_name_); } virtual void TearDown() override { HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(hostapd_, terminate); stopHostapd(wifi_instance_name_); } protected: bool isWpa3SaeSupport_ = false; Loading Loading
wifi/hostapd/1.0/vts/functional/hostapd_hidl_call_util.h +14 −0 Original line number Diff line number Diff line Loading @@ -95,6 +95,14 @@ typename functionArgSaver<CallbackT>::StorageT invokeMethod( EXPECT_TRUE(res.isOk()); return result_buffer.saved_values; } // Invokes |void method| on |object| without arguments. template <typename MethodT, typename ObjectT> void invokeVoidMethodWithoutArguments(MethodT method, ObjectT object) { const auto& res = ((*object).*method)(); EXPECT_TRUE(res.isOk()); } } // namespace detail } // namespace Loading Loading @@ -123,3 +131,9 @@ typename functionArgSaver<CallbackT>::StorageT invokeMethod( std::remove_reference<decltype(*strong_pointer)>::type::method##_cb>( \ &std::remove_reference<decltype(*strong_pointer)>::type::method, \ strong_pointer, ##__VA_ARGS__)) // Invokes |void method| on |strong_pointer| without arguments. #define HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(strong_pointer, method) \ (detail::invokeVoidMethodWithoutArguments( \ &std::remove_reference<decltype(*strong_pointer)>::type::method, \ strong_pointer))
wifi/hostapd/1.0/vts/functional/hostapd_hidl_test.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,10 @@ class HostapdHidlTest ASSERT_NE(hostapd_.get(), nullptr); } virtual void TearDown() override { stopHostapd(wifi_instance_name_); } virtual void TearDown() override { HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(hostapd_, terminate); stopHostapd(wifi_instance_name_); } protected: std::string getPrimaryWlanIfaceName() { Loading
wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,10 @@ class HostapdHidlTest ASSERT_NE(hostapd_.get(), nullptr); } virtual void TearDown() override { stopHostapd(wifi_instance_name_); } virtual void TearDown() override { HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(hostapd_, terminate); stopHostapd(wifi_instance_name_); } protected: std::string getPrimaryWlanIfaceName() { Loading
wifi/hostapd/1.2/vts/functional/hostapd_hidl_test.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,10 @@ class HostapdHidlTest "wifi_softap_wpa3_sae_supported"); } virtual void TearDown() override { stopHostapd(wifi_instance_name_); } virtual void TearDown() override { HIDL_INVOKE_VOID_WITHOUT_ARGUMENTS(hostapd_, terminate); stopHostapd(wifi_instance_name_); } protected: bool isWpa3SaeSupport_ = false; Loading