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

Issue 2906233004: Add translate client mock. (Closed)

Created:
3 years, 6 months ago by Leo
Modified:
3 years, 6 months ago
Reviewers:
napper, groby-ooo-7-16
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add translate client mock. Remove duplicates from translate_manager_unittest and translate_ui_delegate_unittest. BUG=727436 Review-Url: https://codereview.chromium.org/2906233004 Cr-Commit-Position: refs/heads/master@{#476191} Committed: https://chromium.googlesource.com/chromium/src/+/8f6a87ae5a06c8a93d64ddef451563414ddad9de

Patch Set 1 #

Patch Set 2 : fix format #

Total comments: 12

Patch Set 3 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -102 lines) Patch
M components/translate/core/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/translate/core/browser/mock_translate_client.h View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A components/translate/core/browser/mock_translate_client.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_manager_unittest.cc View 8 chunks +12 lines, -59 lines 0 comments Download
M components/translate/core/browser/translate_ui_delegate_unittest.cc View 2 chunks +2 lines, -43 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Leo
Create the client mock first, So I can use it in delegate tests
3 years, 6 months ago (2017-05-30 05:53:59 UTC) #7
napper
https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.cc File components/translate/core/browser/mock_translate_client.cc (right): https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.cc#newcode15 components/translate/core/browser/mock_translate_client.cc:15: const char* preferred_languages_prefs = NULL; nullptr https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.cc#newcode26 components/translate/core/browser/mock_translate_client.cc:26: TranslateDriver* ...
3 years, 6 months ago (2017-05-30 06:24:36 UTC) #8
groby-ooo-7-16
https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.h File components/translate/core/browser/mock_translate_client.h (right): https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.h#newcode20 components/translate/core/browser/mock_translate_client.h:20: extern const char* preferred_languages_prefs; We really shouldn't expose global ...
3 years, 6 months ago (2017-05-31 00:41:15 UTC) #9
napper
https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.h File components/translate/core/browser/mock_translate_client.h (right): https://codereview.chromium.org/2906233004/diff/20001/components/translate/core/browser/mock_translate_client.h#newcode20 components/translate/core/browser/mock_translate_client.h:20: extern const char* preferred_languages_prefs; On 2017/05/31 at 00:41:15, groby ...
3 years, 6 months ago (2017-05-31 01:16:37 UTC) #10
Leo
Thanks a lot, Rachel and Jon. I have fixed all the comments and tested locally. ...
3 years, 6 months ago (2017-05-31 01:38:26 UTC) #11
napper
lgtm
3 years, 6 months ago (2017-05-31 04:57:14 UTC) #12
groby-ooo-7-16
On 2017/05/31 04:57:14, napper wrote: > lgtm lgtm
3 years, 6 months ago (2017-05-31 20:02:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2906233004/40001
3 years, 6 months ago (2017-06-01 04:29:26 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 04:34:10 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8f6a87ae5a06c8a93d64ddef4515...

Powered by Google App Engine
This is Rietveld 408576698