18 #include "gtest/gtest.h" 25 TEST(FlagsPathUtilTest, TestInitialProgamName) {
28 for (
char& c : program_name)
29 if (c ==
'\\') c =
'/';
31 #if !defined(__wasm__) && !defined(__asmjs__) 32 const std::string expect_name =
"absl/flags/program_name_test";
33 const std::string expect_basename =
"program_name_test";
37 const std::string expect_name =
"this.program";
38 const std::string expect_basename =
"this.program";
41 EXPECT_TRUE(
absl::EndsWith(program_name, expect_name)) << program_name;
45 TEST(FlagsPathUtilTest, TestProgamNameInterfaces) {
52 not_null_terminated = not_null_terminated.substr(1, 10);
std::string ProgramInvocationName()
bool EndsWith(absl::string_view text, absl::string_view suffix)
std::string ShortProgramInvocationName()
void SetProgramInvocationName(absl::string_view prog_name_str)
TEST(Symbolize, Unimplemented)