diff options
| author | 2023-08-18 21:54:33 +0000 | |
|---|---|---|
| committer | 2023-08-18 21:54:33 +0000 | |
| commit | e1ee1aab9f99d05ca97dee3701afb894a6129446 (patch) | |
| tree | 6c3998b030418d97643643d99748d6d325ecab3f /tools/split-select/TestRules.cpp | |
| parent | 3b35e9d4c877106858de12f30e5cff7bb3e8cbbe (diff) | |
| parent | d2a698351d13901b95f836df09e9463344f6ab0e (diff) | |
Merge "Use String8/16 c_str [tools]" into main
Diffstat (limited to 'tools/split-select/TestRules.cpp')
| -rw-r--r-- | tools/split-select/TestRules.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/split-select/TestRules.cpp b/tools/split-select/TestRules.cpp index 86ccd6a25c18..ca3c56fe861c 100644 --- a/tools/split-select/TestRules.cpp +++ b/tools/split-select/TestRules.cpp @@ -78,9 +78,8 @@ const Rule AlwaysTrue() { const String8 actualStr(actual != NULL ? actual->toJson() : String8()); if (expectedStr != actualStr) { - return ::testing::AssertionFailure() - << "Expected: " << expectedStr.string() << "\n" - << " Actual: " << actualStr.string(); + return ::testing::AssertionFailure() << "Expected: " << expectedStr.c_str() << "\n" + << " Actual: " << actualStr.c_str(); } return ::testing::AssertionSuccess(); } |