Lines Matching refs:in
27 static const char* gnu_basename(const char* in) { in gnu_basename() argument
28 return basename(in); in gnu_basename()
37 static char* posix_basename(char* in) { in posix_basename() argument
38 return basename(in); in posix_basename()
44 static void __TestGnuBasename(const char* in, const char* expected_out, int line) { in __TestGnuBasename() argument
46 const char* out = gnu_basename(in); in __TestGnuBasename()
47 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestGnuBasename()
48 ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl; in __TestGnuBasename()
51 static void __TestPosixBasename(const char* in, const char* expected_out, int line) { in __TestPosixBasename() argument
52 char* writable_in = (in != nullptr) ? strdup(in) : nullptr; in __TestPosixBasename()
55 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestPosixBasename()
56 ASSERT_EQ(0, errno) << "(" << line << "): " << in << std::endl; in __TestPosixBasename()
60 #define TestGnuBasename(in, expected) __TestGnuBasename(in, expected, __LINE__) argument
61 #define TestPosixBasename(in, expected) __TestPosixBasename(in, expected, __LINE__) argument