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

Unified Diff: chrome/browser/character_encoding_unittest.cc

Issue 2578003002: Move |GetCanonicalEncodingNameByAliasName| to base/i18n (Closed)
Patch Set: rebased Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/character_encoding.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/character_encoding_unittest.cc
diff --git a/chrome/browser/character_encoding_unittest.cc b/chrome/browser/character_encoding_unittest.cc
deleted file mode 100644
index 05d6ddad73bf4e2086382b5c74478a4573d0ed00..0000000000000000000000000000000000000000
--- a/chrome/browser/character_encoding_unittest.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/character_encoding.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(CharacterEncodingTest, GetCanonicalEncodingNameByAliasName) {
- EXPECT_EQ("Big5",
- GetCanonicalEncodingNameByAliasName("Big5"));
- EXPECT_EQ("windows-874",
- GetCanonicalEncodingNameByAliasName("windows-874"));
- EXPECT_EQ("ISO-8859-8",
- GetCanonicalEncodingNameByAliasName("ISO-8859-8"));
-
- // Non-canonical alias names should be converted to a canonical one.
- EXPECT_EQ("UTF-8",
- GetCanonicalEncodingNameByAliasName("utf8"));
- EXPECT_EQ("gb18030",
- GetCanonicalEncodingNameByAliasName("GB18030"));
-}
« no previous file with comments | « chrome/browser/character_encoding.cc ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698