Skip to content

Commit

Permalink
Remove the ToString from pigweed as googletest complains (#36228)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
andy31415 and andreilitvin authored Oct 24, 2024
1 parent 9423a8c commit 515bc3b
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,6 @@ const EmberAfAttributeMetadata * CreateFakeMeta(EmberAfAttributeType type, bool
}

} // namespace
//
namespace pw {

// Pretty format in case of errors
template <>
StatusWithSize ToString<EncodeResult>(const EncodeResult & result, pw::span<char> buffer)
{
const std::optional<CHIP_ERROR> & value = result.Value();

if (!value.has_value())
{
return pw::string::Format(buffer, "SuccessResult");
}

return pw::string::Format(buffer, "FailureResult:CHIP_ERROR:<%" CHIP_ERROR_FORMAT ">", value->Format());
}

} // namespace pw

// All the tests below assume buffer ordering in little endian format
// Since currently all chip platforms in CI are little endian, we just kept tests
Expand Down

0 comments on commit 515bc3b

Please sign in to comment.