Index: minidump/minidump_string_writer_test.cc |
diff --git a/minidump/minidump_string_writer_test.cc b/minidump/minidump_string_writer_test.cc |
index c4eccd2d7a1a81e2573e2d8c3920b6c9082a1f6a..0bd177173535f3313381ea3d7a0565ac422fff4e 100644 |
--- a/minidump/minidump_string_writer_test.cc |
+++ b/minidump/minidump_string_writer_test.cc |
@@ -181,8 +181,9 @@ TEST(MinidumpStringWriter, MinidumpUTF8StringWriter) { |
file_writer.Reset(); |
crashpad::internal::MinidumpUTF8StringWriter string_writer; |
- string_writer.SetUTF8( |
- std::string(kTestData[index].string, kTestData[index].length)); |
+ std::string test_string(kTestData[index].string, kTestData[index].length); |
+ string_writer.SetUTF8(test_string); |
+ EXPECT_EQ(test_string, string_writer.UTF8()); |
EXPECT_TRUE(string_writer.WriteEverything(&file_writer)); |
const size_t expected_utf8_bytes_with_nul = kTestData[index].length + 1; |