The helper function for {ASSERT|EXPECT}_STRCASENE.
| 2508 | |
| 2509 | // The helper function for {ASSERT|EXPECT}_STRCASENE. |
| 2510 | AssertionResult CmpHelperSTRCASENE(const char* s1_expression, |
| 2511 | const char* s2_expression, |
| 2512 | const char* s1, |
| 2513 | const char* s2) { |
| 2514 | if (!String::CaseInsensitiveCStringEquals(s1, s2)) { |
| 2515 | return AssertionSuccess(); |
| 2516 | } else { |
| 2517 | return AssertionFailure() |
| 2518 | << "Expected: (" << s1_expression << ") != (" |
| 2519 | << s2_expression << ") (ignoring case), actual: \"" |
| 2520 | << s1 << "\" vs \"" << s2 << "\""; |
| 2521 | } |
| 2522 | } |
| 2523 | |
| 2524 | } // namespace internal |
| 2525 |
nothing calls this directly
no test coverage detected