summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-12-24 09:32:31 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-12-24 09:32:31 +0100
commit7a5428f92e9f8a49aab9b4eb4c5aed5822df6457 (patch)
treef5413c369845604f518505523d807cc1b9f4e482 /tests
parentSnap for 4502278 from c35b5c64a8d8192e8e04b378510c64737517c606 to pi-release (diff)
parentMerge "StartsWith allows a std::string prefix now." am: 80ccac2fff am: bd870377b4 (diff)
downloadandroid_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.tar
android_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.tar.gz
android_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.tar.bz2
android_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.tar.lz
android_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.tar.xz
android_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.tar.zst
android_bootable_recovery-7a5428f92e9f8a49aab9b4eb4c5aed5822df6457.zip
Diffstat (limited to '')
-rw-r--r--tests/manual/recovery_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/recovery_test.cpp b/tests/manual/recovery_test.cpp
index 92c6ef2d4..64e3b59e6 100644
--- a/tests/manual/recovery_test.cpp
+++ b/tests/manual/recovery_test.cpp
@@ -209,7 +209,7 @@ TEST_P(ResourceTest, ValidateLocale) {
ASSERT_GT(height, y + 1 + h) << "Locale: " << kLocale << " is not found in the file.";
char* loc = reinterpret_cast<char*>(&row[5]);
if (matches_locale(loc, kLocale.c_str())) {
- EXPECT_TRUE(android::base::StartsWith(loc, kLocale.c_str()));
+ EXPECT_TRUE(android::base::StartsWith(loc, kLocale));
break;
} else {
for (int i = 0; i < h; ++i, ++y) {