| 91 | } |
| 92 | |
| 93 | void AssertRedactedEquals(const char* message, const char* expected) { |
| 94 | std::string temp(message); |
| 95 | Redact(&temp); |
| 96 | ASSERT_EQ(expected, temp); |
| 97 | |
| 98 | /// Test the signature with the 'changed' argument. |
| 99 | temp = std::string(message); |
| 100 | bool changed = false; |
| 101 | Redact(&temp, &changed); |
| 102 | ASSERT_EQ(expected, temp); |
| 103 | ASSERT_EQ(temp == message, !changed); |
| 104 | } |
| 105 | |
| 106 | void AssertUnredacted(const char* message) { |
| 107 | AssertRedactedEquals(message, message); |
no test coverage detected