| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sky/engine/config.h" | |
| 6 | 5 |
| 7 #include "sky/engine/wtf/text/TextCodecReplacement.h" | 6 #include "sky/engine/wtf/text/TextCodecReplacement.h" |
| 8 | 7 |
| 9 #include <gtest/gtest.h> | 8 #include <gtest/gtest.h> |
| 10 #include "sky/engine/wtf/OwnPtr.h" | 9 #include "sky/engine/wtf/OwnPtr.h" |
| 11 #include "sky/engine/wtf/text/CString.h" | 10 #include "sky/engine/wtf/text/CString.h" |
| 12 #include "sky/engine/wtf/text/TextCodec.h" | 11 #include "sky/engine/wtf/text/TextCodec.h" |
| 13 #include "sky/engine/wtf/text/TextEncoding.h" | 12 #include "sky/engine/wtf/text/TextEncoding.h" |
| 14 #include "sky/engine/wtf/text/TextEncodingRegistry.h" | 13 #include "sky/engine/wtf/text/TextEncodingRegistry.h" |
| 15 #include "sky/engine/wtf/text/WTFString.h" | 14 #include "sky/engine/wtf/text/WTFString.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const UChar testCase[] = { 0x6F22, 0x5B57 }; | 54 const UChar testCase[] = { 0x6F22, 0x5B57 }; |
| 56 size_t testCaseSize = WTF_ARRAY_LENGTH(testCase); | 55 size_t testCaseSize = WTF_ARRAY_LENGTH(testCase); |
| 57 CString result = codec->encode(testCase, testCaseSize, QuestionMarksForUnenc
odables); | 56 CString result = codec->encode(testCase, testCaseSize, QuestionMarksForUnenc
odables); |
| 58 | 57 |
| 59 EXPECT_STREQ("\xE6\xBC\xA2\xE5\xAD\x97", result.data()); | 58 EXPECT_STREQ("\xE6\xBC\xA2\xE5\xAD\x97", result.data()); |
| 60 } | 59 } |
| 61 | 60 |
| 62 } // namespace | 61 } // namespace |
| 63 | 62 |
| 64 } // namespace WTF | 63 } // namespace WTF |
| OLD | NEW |