mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Inline deprecated versions of absl::Base64Escape() and
absl::WebSafeBase64Escape() PiperOrigin-RevId: 871304867 Change-Id: Id35fbc05d7f2f483333e6975e5a16f3a04d361fe
This commit is contained in:
committed by
Copybara-Service
parent
586a3fbe2a
commit
6ec9964c32
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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".
|
||||
|
||||
Reference in New Issue
Block a user