Returns the assertion's negation. Used with EXPECT/ASSERT_FALSE.
| 2494 | |
| 2495 | // Returns the assertion's negation. Used with EXPECT/ASSERT_FALSE. |
| 2496 | AssertionResult AssertionResult::operator!() const { |
| 2497 | AssertionResult negation(!success_); |
| 2498 | if (message_.get() != nullptr) negation << *message_; |
| 2499 | return negation; |
| 2500 | } |
| 2501 | |
| 2502 | // Makes a successful assertion result. |
| 2503 | AssertionResult AssertionSuccess() { |