diff options
author | 2023-08-10 23:54:44 +0000 | |
---|---|---|
committer | 2023-08-18 16:53:34 +0000 | |
commit | d2a698351d13901b95f836df09e9463344f6ab0e (patch) | |
tree | f5b5141eb4645a5ef124309dc814c6985bbed93f /tools/split-select/TestRules.cpp | |
parent | d122f435d437c0096466d008f1c460a62884be66 (diff) |
Use String8/16 c_str [tools]
Bug: 295394788
Test: make checkbuild
Change-Id: I82d6899d8c15a10b15399c39177290012bb5f13b
Merged-In: I82d6899d8c15a10b15399c39177290012bb5f13b
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(); } |