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 18:11:54 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-08-18 18:11:54 +0000
commitb370693c676505e3875b33ac8ef0469cb12254e3 (patch)
tree4a32380467974da2b1b3b0fb083067edf7433675 /tools/split-select/TestRules.cpp
parentb660bfd3f83f6ddf31060b62eca90a3d76ae420d (diff)
parentade063198edba319a9c499edfaa490b4694e4aa6 (diff)
Merge "Use String8/16 c_str [tools]" into udc-dev-plus-aosp
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();
}