summaryrefslogtreecommitdiff
path: root/tools/split-select/TestRules.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-08-18 21:54:33 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-08-18 21:54:33 +0000
commite1ee1aab9f99d05ca97dee3701afb894a6129446 (patch)
tree6c3998b030418d97643643d99748d6d325ecab3f /tools/split-select/TestRules.cpp
parent3b35e9d4c877106858de12f30e5cff7bb3e8cbbe (diff)
parentd2a698351d13901b95f836df09e9463344f6ab0e (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.cpp5
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();
}