common/cpp/src/google_smart_card_common/formatting_unittest.cc
TEST(FormatPrintfTemplateAndSet, HugeResult) {
  constexpr int kLength = 100 * 1000;
  const std::string kParameter(kLength, 'a');
  std::string formatted;
  FormatPrintfTemplateAndSet(&formatted, "%s", kParameter.c_str());
  EXPECT_EQ(formatted, kParameter);
}
// Test that FormatPrintfTemplateAndSet() correctly handles the case when the
// resulting string is quite long.
Test that FormatPrintfTemplateAndSet() correctly handles the case when the
resulting string is quite long.
Test that FormatPrintfTemplateAndSet () correctly handles the case when the resulting string is quite long .
TEST(FormatPrintfTemplateAndSet, HugeResult) {
  constexpr int kLength = 100 * 1000;
  const std::string kParameter(kLength, 'a');
  std::string formatted;
  FormatPrintfTemplateAndSet(&formatted, "%s", kParameter.c_str());
  EXPECT_EQ(formatted, kParameter);
}
TEST ( FormatPrintfTemplateAndSet , HugeResult ) { constexpr int kLength = 100 * 1000 ; const std :: string kParameter ( kLength , ' ' ) ; std :: string formatted ; FormatPrintfTemplateAndSet ( & formatted , " " , kParameter . c_str ( ) ) ; EXPECT_EQ ( formatted , kParameter ) ; }
Test that FormatPrintfTemplateAndSet() correctly handles the case when the
resulting string is quite long.
Test that FormatPrintfTemplateAndSet () correctly handles the case when the resulting string is quite long .