common/cpp/src/google_smart_card_common/formatting_unittest.cc
TEST(FormatPrintfTemplateAndSet, NullPointer) {
  FormatPrintfTemplateAndSet(/*output_string=*/nullptr, /*format=*/"");
  FormatPrintfTemplateAndSet(/*output_string=*/nullptr, "%d", 123);
  FormatPrintfTemplateAndSet(/*output_string=*/nullptr, "string=%s int=%d",
                             "foo", 123);
}
// Test that FormatPrintfTemplateAndSet() doesn't crash when the output string
// is a null pointer.
Test that FormatPrintfTemplateAndSet() doesn't crash when the output string
is a null pointer.
Test that FormatPrintfTemplateAndSet () doesn ' t crash when the output string is a null pointer .
TEST(FormatPrintfTemplateAndSet, NullPointer) {
  FormatPrintfTemplateAndSet(nullptr, "");
  FormatPrintfTemplateAndSet(nullptr, "%d", 123);
  FormatPrintfTemplateAndSet(nullptr, "string=%s int=%d",
                             "foo", 123);
}
TEST ( FormatPrintfTemplateAndSet , NullPointer ) { FormatPrintfTemplateAndSet ( nullptr , " " ) ; FormatPrintfTemplateAndSet ( nullptr , " " , 123 ) ; FormatPrintfTemplateAndSet ( nullptr , " " , " " , 123 ) ; }
Test that FormatPrintfTemplateAndSet() doesn't crash when the output string
is a null pointer.
Test that FormatPrintfTemplateAndSet () doesn ' t crash when the output string is a null pointer .
/*output_string=*/ /*format=*/ /*output_string=*/ /*output_string=*/