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

Issue 12221085: Translate: split language code typo correction to apply unit tests. (Closed)

Created:
7 years, 10 months ago by Takashi Toyoshima
Modified:
7 years, 10 months ago
Reviewers:
MAD, sky
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Translate: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -20 lines) Patch
M chrome/renderer/translate_helper.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/translate_helper.cc View 1 2 chunks +29 lines, -20 lines 0 comments Download
M chrome/renderer/translate_helper_unittest.cc View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Takashi Toyoshima
Hi mad, This is an extra CL to apply unit tests against well-known language code ...
7 years, 10 months ago (2013-02-08 11:48:01 UTC) #1
MAD
LGTM with a small optional nit... Thanks! BYE MAD https://codereview.chromium.org/12221085/diff/1/chrome/renderer/translate_helper_browsertest.cc File chrome/renderer/translate_helper_browsertest.cc (right): https://codereview.chromium.org/12221085/diff/1/chrome/renderer/translate_helper_browsertest.cc#newcode32 chrome/renderer/translate_helper_browsertest.cc:32: ...
7 years, 10 months ago (2013-02-08 13:46:41 UTC) #2
Takashi Toyoshima
https://codereview.chromium.org/12221085/diff/1/chrome/renderer/translate_helper_browsertest.cc File chrome/renderer/translate_helper_browsertest.cc (right): https://codereview.chromium.org/12221085/diff/1/chrome/renderer/translate_helper_browsertest.cc#newcode32 chrome/renderer/translate_helper_browsertest.cc:32: void CorrectLanguageCodeTypo(std::string* code) { I see. I think FRIEND_TEST_ALL_PREFIXES ...
7 years, 10 months ago (2013-02-11 06:59:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/12221085/1
7 years, 10 months ago (2013-02-11 06:59:54 UTC) #4
commit-bot: I haz the power
Presubmit check for 12221085-1 failed and returned exit status 1. INFO:root:Found 3 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-11 06:59:56 UTC) #5
Takashi Toyoshima
+sky@ for chrome/ OWNER check.
7 years, 10 months ago (2013-02-11 07:01:05 UTC) #6
sky
https://codereview.chromium.org/12221085/diff/1/chrome/renderer/translate_helper.h File chrome/renderer/translate_helper.h (right): https://codereview.chromium.org/12221085/diff/1/chrome/renderer/translate_helper.h#newcode31 chrome/renderer/translate_helper.h:31: // Correct language coed if it contains well-known mistakes. ...
7 years, 10 months ago (2013-02-11 21:10:14 UTC) #7
Takashi Toyoshima
Thanks. I update this change in order to implement new test as unit test. This ...
7 years, 10 months ago (2013-02-12 06:46:02 UTC) #8
sky
LGTM - but see comments in other patch as you should consolidate test files. https://codereview.chromium.org/12221085/diff/3003/chrome/renderer/translate_helper_unittest.cc ...
7 years, 10 months ago (2013-02-12 17:30:06 UTC) #9
Takashi Toyoshima
I'll submit this because dependent change is submitted now. Thanks. https://codereview.chromium.org/12221085/diff/3003/chrome/renderer/translate_helper_unittest.cc File chrome/renderer/translate_helper_unittest.cc (right): https://codereview.chromium.org/12221085/diff/3003/chrome/renderer/translate_helper_unittest.cc#newcode18 ...
7 years, 10 months ago (2013-02-14 08:00:18 UTC) #10
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 08:07:18 UTC) #11

Powered by Google App Engine
This is Rietveld 408576698