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

Unified Diff: chrome/installer/util/shell_util_unittest.cc

Issue 2017123002: Adds a base32 component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Migrates installer/setup/user_hive_visitor.cc to use base32 component Created 4 years, 6 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/installer/util/shell_util.cc ('k') | components/base32.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util_unittest.cc
diff --git a/chrome/installer/util/shell_util_unittest.cc b/chrome/installer/util/shell_util_unittest.cc
index cd625dd08992f16daaf699d6b9b5781a63bedf38..deef4db62438c3574eb718500075b2042b758a16 100644
--- a/chrome/installer/util/shell_util_unittest.cc
+++ b/chrome/installer/util/shell_util_unittest.cc
@@ -1005,16 +1005,3 @@ TEST(ShellUtilTest, GetOldUserSpecificRegistrySuffix) {
ASSERT_STREQ(user_name, suffix.substr(1).c_str());
}
-TEST(ShellUtilTest, ByteArrayToBase32) {
- // Tests from http://tools.ietf.org/html/rfc4648#section-10.
- const unsigned char test_array[] = { 'f', 'o', 'o', 'b', 'a', 'r' };
-
- const base::string16 expected[] = { L"", L"MY", L"MZXQ", L"MZXW6", L"MZXW6YQ",
- L"MZXW6YTB", L"MZXW6YTBOI"};
-
- // Run the tests, with one more letter in the input every pass.
- for (size_t i = 0; i < arraysize(expected); ++i) {
- ASSERT_EQ(expected[i],
- ShellUtil::ByteArrayToBase32(test_array, i));
- }
-}
« no previous file with comments | « chrome/installer/util/shell_util.cc ('k') | components/base32.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698