Inline deprecated versions of absl::Base64Escape() and

absl::WebSafeBase64Escape()

PiperOrigin-RevId: 871304867
Change-Id: Id35fbc05d7f2f483333e6975e5a16f3a04d361fe
This commit is contained in:
Derek Mauro
2026-02-17 07:25:24 -08:00
committed by Copybara-Service
parent 586a3fbe2a
commit 6ec9964c32
2 changed files with 2 additions and 5 deletions

View File

@@ -49,9 +49,7 @@ void BM_WebSafeBase64Escape_string(benchmark::State& state) {
}
}
for (auto _ : state) {
std::string escaped;
benchmark::DoNotOptimize(raw);
absl::WebSafeBase64Escape(raw, &escaped);
std::string escaped = absl::WebSafeBase64Escape(raw);
benchmark::DoNotOptimize(escaped);
}
}

View File

@@ -683,8 +683,7 @@ TEST(Base64, DISABLED_HugeData) {
static_assert(kSize % 3 == 0, "kSize must be divisible by 3");
const std::string huge(kSize, 'x');
std::string escaped;
absl::Base64Escape(huge, &escaped);
std::string escaped = absl::Base64Escape(huge);
// Generates the string that should match a base64 encoded "xxx..." string.
// "xxx" in base64 is "eHh4".