aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes2017-12-20 14:36:31 -0600
committerElliott Hughes2017-12-20 14:36:31 -0600
commit1d65c95fe8284c7b97823c4a719505d773fcea55 (patch)
tree576ea15da50d8081d937a15b194b675f0f221057 /tests
parent3fe230a1e47863e43fec629a2cfe1f51915e9f32 (diff)
downloadplatform-bootable-recovery-1d65c95fe8284c7b97823c4a719505d773fcea55.tar.gz
platform-bootable-recovery-1d65c95fe8284c7b97823c4a719505d773fcea55.tar.xz
platform-bootable-recovery-1d65c95fe8284c7b97823c4a719505d773fcea55.zip
StartsWith allows a std::string prefix now.
Bug: N/A Test: builds Change-Id: I5183ec8133f5dc9a81a438223c6d3d2ea11ef0ec
Diffstat (limited to 'tests')
-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 92c6ef2d..64e3b59e 100644
--- a/tests/manual/recovery_test.cpp
+++ b/tests/manual/recovery_test.cpp
@@ -209,7 +209,7 @@ TEST_P(ResourceTest, ValidateLocale) {
209 ASSERT_GT(height, y + 1 + h) << "Locale: " << kLocale << " is not found in the file."; 209 ASSERT_GT(height, y + 1 + h) << "Locale: " << kLocale << " is not found in the file.";
210 char* loc = reinterpret_cast<char*>(&row[5]); 210 char* loc = reinterpret_cast<char*>(&row[5]);
211 if (matches_locale(loc, kLocale.c_str())) { 211 if (matches_locale(loc, kLocale.c_str())) {
212 EXPECT_TRUE(android::base::StartsWith(loc, kLocale.c_str())); 212 EXPECT_TRUE(android::base::StartsWith(loc, kLocale));
213 break; 213 break;
214 } else { 214 } else {
215 for (int i = 0; i < h; ++i, ++y) { 215 for (int i = 0; i < h; ++i, ++y) {