Home
last modified time | relevance | path

Searched refs:c_string (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/googletest/googletest/samples/
H A Dsample2_unittest.cc70 EXPECT_STREQ(nullptr, s.c_string()); in TEST()
80 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
88 EXPECT_EQ(0, strcmp(s2.c_string(), kHelloString)); in TEST()
96 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
100 s.Set(s.c_string()); in TEST()
101 EXPECT_EQ(0, strcmp(s.c_string(), kHelloString)); in TEST()
105 EXPECT_STREQ(nullptr, s.c_string()); in TEST()
H A Dsample2.h71 const char* c_string() const { return c_string_; } in c_string() function
76 void Set(const char* c_string);
/freebsd/contrib/googletest/docs/reference/
H A Dassertions.md228 To compare a C string with `NULL`, use `EXPECT_EQ(`*`c_string`*`, nullptr)` or
229 `EXPECT_NE(`*`c_string`*`, nullptr)`.