47class TestPartResultTest :
public Test {
51 r2_(
TestPartResult::kNonFatalFailure,
"foo/bar.cc", -1,
"Failure!"),
58TEST_F(TestPartResultTest, ConstructorWorks) {
60 message <<
"something is terribly wrong";
62 message <<
"some unimportant stack trace";
67 message.GetString().c_str());
72 EXPECT_STREQ(message.GetString().c_str(), result.message());
73 EXPECT_STREQ(
"something is terribly wrong", result.summary());
76TEST_F(TestPartResultTest, ResultAccessorsWork) {
106TEST_F(TestPartResultTest, type) {
113TEST_F(TestPartResultTest, file_name) {
119TEST_F(TestPartResultTest, line_number) {
125TEST_F(TestPartResultTest, message) {
130TEST_F(TestPartResultTest, Passed) {
137TEST_F(TestPartResultTest, Failed) {
144TEST_F(TestPartResultTest, FatallyFailed) {
151TEST_F(TestPartResultTest, NonfatallyFailed) {
159class TestPartResultArrayTest :
public Test {
161 TestPartResultArrayTest()
162 : r1_(
TestPartResult::kNonFatalFailure,
"foo/bar.cc", -1,
"Failure 1"),
163 r2_(
TestPartResult::kFatalFailure,
"foo/bar.cc", -1,
"Failure 2") {}
169TEST_F(TestPartResultArrayTest, InitialSizeIsZero) {
176TEST_F(TestPartResultArrayTest, ContainsGivenResultAfterAppend) {
185TEST_F(TestPartResultArrayTest, ContainsGivenResultsAfterTwoAppends) {
194typedef TestPartResultArrayTest TestPartResultArrayDeathTest;
198TEST_F(TestPartResultArrayDeathTest, DiesWhenIndexIsOutOfBound) {
void Append(const TestPartResult &result)
#define EXPECT_DEATH_IF_SUPPORTED(statement, regex)
#define TEST_F(test_fixture, test_name)
#define EXPECT_EQ(val1, val2)
#define EXPECT_TRUE(condition)
#define EXPECT_STREQ(s1, s2)
#define EXPECT_FALSE(condition)
GTEST_API_ const char kStackTraceMarker[]
account_query_db::get_accounts_by_authorizers_result results