| * Copyright (c) 2025 The WebRTC project authors. All Rights Reserved. |
| * Use of this source code is governed by a BSD-style license |
| * that can be found in the LICENSE file in the root of the source |
| * tree. An additional intellectual property rights grant can be found |
| * in the file PATENTS. All contributing project authors may |
| * be found in the AUTHORS file in the root of the source tree. |
| #include "api/array_view.h" |
| #include "rtc_base/base64.h" |
| #include "rtc_base/checks.h" |
| void FuzzOneInput(const uint8_t* data, size_t size) { |
| std::optional<std::string> decoded_encoded_data = |
| Base64Decode(Base64Encode(webrtc::MakeArrayView(data, size))); |
| RTC_CHECK(decoded_encoded_data.has_value()); |
| RTC_CHECK_EQ(std::memcmp(data, decoded_encoded_data->data(), size), 0); |