Bug 1318282 - Replace string literals containing escaped characters with raw string literals in storage/. r=mak
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 17 Nov 2016 12:35:02 +0200
changeset 368750 82c130ab1511cda3f715564854de8810c663d743
parent 368749 760ff7b0570cc08690ac21c51135f0d6f098b02d
child 368751 5e47faec51ed2e738c7b3894f0c29f89de95cb83
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1318282
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1318282 - Replace string literals containing escaped characters with raw string literals in storage/. r=mak MozReview-Commit-ID: 7iVr1Ug0Oot
storage/test/test_binding_params.cpp
--- a/storage/test/test_binding_params.cpp
+++ b/storage/test/test_binding_params.cpp
@@ -121,17 +121,17 @@ test_UTFStrings()
     "INSERT INTO test (str) VALUES (?1)"
   ), getter_AddRefs(insert));
   (void)db->CreateStatement(NS_LITERAL_CSTRING(
     "SELECT str FROM test"
   ), getter_AddRefs(select));
 
   // Roundtrip a UTF8 string through the table, using UTF8 input and output.
   static const char sCharArray[] =
-    "I'm a \xc3\xbb\xc3\xbc\xc3\xa2\xc3\xa4\xc3\xa7 UTF8 string!";
+    R"(I'm a ûüâäç UTF8 string!)";
   nsAutoCString insertedUTF8(sCharArray, ArrayLength(sCharArray) - 1);
   do_check_true(insertedUTF8.Length() == ArrayLength(sCharArray) - 1);
   NS_ConvertUTF8toUTF16 insertedUTF16(insertedUTF8);
   do_check_true(insertedUTF8 == NS_ConvertUTF16toUTF8(insertedUTF16));
   {
     mozStorageStatementScoper scoper(insert);
     bool hasResult;
     do_check_true(NS_SUCCEEDED(insert->BindUTF8StringByIndex(0, insertedUTF8)));