| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/wtf/text/TextCodecICU.h" | 5 #include "platform/wtf/text/TextCodecICU.h" |
| 6 | 6 |
| 7 #include "platform/wtf/Vector.h" | 7 #include "platform/wtf/Vector.h" |
| 8 #include "platform/wtf/text/CharacterNames.h" | 8 #include "platform/wtf/text/CharacterNames.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 CString encoded = codec->Encode(data, 0, kQuestionMarksForUnencodables); | 48 CString encoded = codec->Encode(data, 0, kQuestionMarksForUnencodables); |
| 49 EXPECT_STREQ("", encoded.data()); | 49 EXPECT_STREQ("", encoded.data()); |
| 50 } | 50 } |
| 51 { | 51 { |
| 52 CString encoded = codec->Encode(kPoo, WTF_ARRAY_LENGTH(kPoo), | 52 CString encoded = codec->Encode(kPoo, WTF_ARRAY_LENGTH(kPoo), |
| 53 kQuestionMarksForUnencodables); | 53 kQuestionMarksForUnencodables); |
| 54 EXPECT_STREQ(expected.data(), encoded.data()); | 54 EXPECT_STREQ(expected.data(), encoded.data()); |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 } | 58 } // namespace WTF |
| OLD | NEW |