Export of internal Abseil changes
-- ea0cfebeb69b25bec343652bbe1a203f5476c51a by Mark Barolak <mbar@google.com>: Change "std::string" to "string" in places where a "std::" qualification was incorrectly inserted by automation. PiperOrigin-RevId: 300108520 GitOrigin-RevId: ea0cfebeb69b25bec343652bbe1a203f5476c51a Change-Id: Ie3621e63a6ebad67b9fe56a3ebe33e1d50dac602
This commit is contained in:
parent
d936052d32
commit
a877af1f29
68 changed files with 191 additions and 191 deletions
|
|
@ -131,7 +131,7 @@ TEST(BernoulliTest, StabilityTest) {
|
|||
0x275b0dc7e0a18acfull, 0x36cebe0d2653682eull, 0x0361e9b23861596bull,
|
||||
});
|
||||
|
||||
// Generate a std::string of '0' and '1' for the distribution output.
|
||||
// Generate a string of '0' and '1' for the distribution output.
|
||||
auto generate = [&urbg](absl::bernoulli_distribution& dist) {
|
||||
std::string output;
|
||||
output.reserve(36);
|
||||
|
|
@ -176,7 +176,7 @@ TEST(BernoulliTest, StabilityTest2) {
|
|||
0xECDD4775619F1510ull, 0x13CCA830EB61BD96ull, 0x0334FE1EAA0363CFull,
|
||||
0xB5735C904C70A239ull, 0xD59E9E0BCBAADE14ull, 0xEECC86BC60622CA7ull});
|
||||
|
||||
// Generate a std::string of '0' and '1' for the distribution output.
|
||||
// Generate a string of '0' and '1' for the distribution output.
|
||||
auto generate = [&urbg](absl::bernoulli_distribution& dist) {
|
||||
std::string output;
|
||||
output.reserve(13);
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ std::string BrandString() {
|
|||
char brand_string[49];
|
||||
uint32_t abcd[4];
|
||||
|
||||
// Check if brand std::string is supported (it is on all reasonable Intel/AMD)
|
||||
// Check if brand string is supported (it is on all reasonable Intel/AMD)
|
||||
Cpuid(0x80000000U, 0, abcd);
|
||||
if (abcd[0] < 0x80000004U) {
|
||||
return std::string();
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ TYPED_TEST(UniformIntDistributionTest, ViolatesPreconditionsDeathTest) {
|
|||
absl::uniform_int_distribution<TypeParam> dist(10, 1);
|
||||
auto x = dist(gen);
|
||||
|
||||
// Any value will generate a non-empty std::string.
|
||||
// Any value will generate a non-empty string.
|
||||
EXPECT_FALSE(absl::StrCat(+x).empty()) << x;
|
||||
#endif // NDEBUG
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue