The moves look fine but why are you doing a cast instead of fixing the signature. https://codereview.appspot.com/290130043/diff/1/external_tests/ssl_gtest/ssl_... File external_tests/ssl_gtest/ssl_loopback_unittest.cc (right): https://codereview.appspot.com/290130043/diff/1/external_tests/ssl_gtest/ssl_... external_tests/ssl_gtest/ssl_loopback_unittest.cc:578: ConnectSendReceive((int16_t)TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256); Why does this need a cast? Wouldn't it be better to fix the declaration.