| Index: core/src/fxcrt/fx_basic_wstring_unittest.cpp
|
| diff --git a/core/src/fxcrt/fx_basic_wstring_unittest.cpp b/core/src/fxcrt/fx_basic_wstring_unittest.cpp
|
| index 21b5ae54f64aa3453199f81ace4182bdf89afc86..847e5e8076cf7f646bd67bc4334c45965b818374 100644
|
| --- a/core/src/fxcrt/fx_basic_wstring_unittest.cpp
|
| +++ b/core/src/fxcrt/fx_basic_wstring_unittest.cpp
|
| @@ -249,6 +249,33 @@ TEST(fxcrt, WideStringOperatorNE) {
|
| EXPECT_TRUE(c_string3 != wide_string);
|
| }
|
|
|
| +TEST(fxcrt, WideStringConcatInPlace) {
|
| + CFX_WideString fred;
|
| + fred.ConcatInPlace(4, L"FRED");
|
| + EXPECT_EQ(L"FRED", fred);
|
| +
|
| + fred.ConcatInPlace(2, L"DY");
|
| + EXPECT_EQ(L"FREDDY", fred);
|
| +
|
| + fred.Delete(3, 3);
|
| + EXPECT_EQ(L"FRE", fred);
|
| +
|
| + fred.ConcatInPlace(1, L"D");
|
| + EXPECT_EQ(L"FRED", fred);
|
| +
|
| + CFX_WideString copy = fred;
|
| + fred.ConcatInPlace(2, L"DY");
|
| + EXPECT_EQ(L"FREDDY", fred);
|
| + EXPECT_EQ(L"FRED", copy);
|
| +
|
| + // Test invalid arguments.
|
| + copy = fred;
|
| + fred.ConcatInPlace(-6, L"freddy");
|
| + CFX_WideString not_aliased(L"xxxxxx");
|
| + EXPECT_EQ(L"FREDDY", fred);
|
| + EXPECT_EQ(L"xxxxxx", not_aliased);
|
| +}
|
| +
|
| #define ByteStringLiteral(str) CFX_ByteString(FX_BSTRC(str))
|
|
|
| TEST(fxcrt, WideStringUTF16LE_Encode) {
|
|
|