From 515bc3b8e036329bd78bef82c166c0b51e81cf73 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 24 Oct 2024 10:31:01 -0400 Subject: [PATCH] Remove the ToString from pigweed as googletest complains (#36228) Co-authored-by: Andrei Litvin --- .../tests/TestEmberAttributeDataBuffer.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp b/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp index bc089c8a798a6a..7d46360029c529 100644 --- a/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp +++ b/src/app/codegen-data-model-provider/tests/TestEmberAttributeDataBuffer.cpp @@ -164,24 +164,6 @@ const EmberAfAttributeMetadata * CreateFakeMeta(EmberAfAttributeType type, bool } } // namespace -// -namespace pw { - -// Pretty format in case of errors -template <> -StatusWithSize ToString(const EncodeResult & result, pw::span buffer) -{ - const std::optional & 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