Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: sky/engine/wtf/text/TextCodecReplacementTest.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/wtf/text/TextCodecReplacement.cpp ('k') | sky/engine/wtf/text/TextCodecUTF16.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "config.h" 5 #include "sky/engine/config.h"
6 6
7 #include "wtf/text/TextCodecReplacement.h" 7 #include "sky/engine/wtf/text/TextCodecReplacement.h"
8 8
9 #include "wtf/OwnPtr.h"
10 #include "wtf/text/CString.h"
11 #include "wtf/text/TextCodec.h"
12 #include "wtf/text/TextEncoding.h"
13 #include "wtf/text/TextEncodingRegistry.h"
14 #include "wtf/text/WTFString.h"
15 #include <gtest/gtest.h> 9 #include <gtest/gtest.h>
10 #include "sky/engine/wtf/OwnPtr.h"
11 #include "sky/engine/wtf/text/CString.h"
12 #include "sky/engine/wtf/text/TextCodec.h"
13 #include "sky/engine/wtf/text/TextEncoding.h"
14 #include "sky/engine/wtf/text/TextEncodingRegistry.h"
15 #include "sky/engine/wtf/text/WTFString.h"
16 16
17 namespace WTF { 17 namespace WTF {
18 18
19 namespace { 19 namespace {
20 20
21 // Just one example, others are listed in the codec implementation. 21 // Just one example, others are listed in the codec implementation.
22 const char* replacementAlias = "iso-2022-kr"; 22 const char* replacementAlias = "iso-2022-kr";
23 23
24 TEST(TextCodecReplacement, Aliases) 24 TEST(TextCodecReplacement, Aliases)
25 { 25 {
(...skipping 29 matching lines...) Expand all
55 const UChar testCase[] = { 0x6F22, 0x5B57 }; 55 const UChar testCase[] = { 0x6F22, 0x5B57 };
56 size_t testCaseSize = WTF_ARRAY_LENGTH(testCase); 56 size_t testCaseSize = WTF_ARRAY_LENGTH(testCase);
57 CString result = codec->encode(testCase, testCaseSize, QuestionMarksForUnenc odables); 57 CString result = codec->encode(testCase, testCaseSize, QuestionMarksForUnenc odables);
58 58
59 EXPECT_STREQ("\xE6\xBC\xA2\xE5\xAD\x97", result.data()); 59 EXPECT_STREQ("\xE6\xBC\xA2\xE5\xAD\x97", result.data());
60 } 60 }
61 61
62 } // namespace 62 } // namespace
63 63
64 } // namespace WTF 64 } // namespace WTF
OLDNEW
« no previous file with comments | « sky/engine/wtf/text/TextCodecReplacement.cpp ('k') | sky/engine/wtf/text/TextCodecUTF16.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698