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

Side by Side Diff: chrome/browser/character_encoding_unittest.cc

Issue 2254273003: Remove text encoding UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 months 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 | « chrome/browser/character_encoding.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/character_encoding.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 TEST(CharacterEncodingTest, GetCanonicalEncodingNameByAliasName) {
10 EXPECT_EQ("Big5",
11 GetCanonicalEncodingNameByAliasName("Big5"));
12 EXPECT_EQ("windows-874",
13 GetCanonicalEncodingNameByAliasName("windows-874"));
14 EXPECT_EQ("ISO-8859-8",
15 GetCanonicalEncodingNameByAliasName("ISO-8859-8"));
16
17 // Non-canonical alias names should be converted to a canonical one.
18 EXPECT_EQ("UTF-8",
19 GetCanonicalEncodingNameByAliasName("utf8"));
20 EXPECT_EQ("gb18030",
21 GetCanonicalEncodingNameByAliasName("GB18030"));
22 }
OLDNEW
« no previous file with comments | « chrome/browser/character_encoding.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698