DescriptionTranslate: split language code typo correction to apply unit tests.
Split language code type correction logic to an independent static
function. Then, apply unit tests to confirm that the logic correct
well-known mal-formed language code.
BUG=175673
TEST=unit_tests --gtest_filter'TranslateHelperTest.LanguageCodeTypoCorrection'
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182459
Patch Set 1 #
Total comments: 6
Patch Set 2 : unit test version #
Total comments: 2
Patch Set 3 : fix EXPECT_EQs #Patch Set 4 : rebase #
Messages
Total messages: 11 (0 generated)
|