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

Issue 186063007: Move TranslateManager unit tests out of the browser_tests target. (Closed)

Created:
6 years, 9 months ago by danakj
Modified:
6 years, 9 months ago
CC:
chromium-reviews, piman, Miguel Garcia
Visibility:
Public.

Description

Move TranslateManager unit tests out of the browser_tests target. These are unit tests so they should be in the unit_tests target. A TODO says this did not work before, but they appear to pass as unit tests now, so this is just a code move. BUG=270918 R=droger@chromium.org, hajimehoshi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255661

Patch Set 1 #

Patch Set 2 : translatetests: #

Patch Set 3 : translatetests: fixandroid #

Total comments: 2

Patch Set 4 : translatetests: #

Patch Set 5 : translatetests: #

Total comments: 4

Patch Set 6 : translatetests: #

Patch Set 7 : translatetests: Fix test clobbering #

Total comments: 8

Patch Set 8 : translatetests: nits #

Patch Set 9 : translatetests: comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -1747 lines) Patch
M chrome/browser/translate/translate_manager_browsertest.cc View 3 chunks +6 lines, -1570 lines 0 comments Download
A + chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 4 5 6 7 57 chunks +111 lines, -176 lines 0 comments Download
M chrome/browser/translate/translate_service.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_service.cc View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_download_manager.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_download_manager.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
danakj
6 years, 9 months ago (2014-03-03 22:58:52 UTC) #1
sky
-sky +hajimehoshi
6 years, 9 months ago (2014-03-03 23:07:02 UTC) #2
hajimehoshi
+droger, miguelg (CC) Thank you for your refactoring! https://codereview.chromium.org/186063007/diff/40001/chrome/browser/translate/translate_manager_unittest.cc File chrome/browser/translate/translate_manager_unittest.cc (right): https://codereview.chromium.org/186063007/diff/40001/chrome/browser/translate/translate_manager_unittest.cc#newcode93 chrome/browser/translate/translate_manager_unittest.cc:93: #if ...
6 years, 9 months ago (2014-03-04 02:35:57 UTC) #3
droger
This does not look like a unittest of TranslateManager, but rather some kind of integration ...
6 years, 9 months ago (2014-03-04 09:00:39 UTC) #4
danakj
https://codereview.chromium.org/186063007/diff/40001/chrome/browser/translate/translate_manager_unittest.cc File chrome/browser/translate/translate_manager_unittest.cc (right): https://codereview.chromium.org/186063007/diff/40001/chrome/browser/translate/translate_manager_unittest.cc#newcode93 chrome/browser/translate/translate_manager_unittest.cc:93: #if !defined(OS_ANDROID) On 2014/03/04 02:35:57, hajimehoshi wrote: > Is ...
6 years, 9 months ago (2014-03-04 15:39:23 UTC) #5
danakj
PTAL On Tue, Mar 4, 2014 at 4:00 AM, <droger@chromium.org> wrote: > This does not ...
6 years, 9 months ago (2014-03-04 15:48:16 UTC) #6
droger
On 2014/03/04 15:48:16, danakj wrote: > Sure, done. Thanks!
6 years, 9 months ago (2014-03-04 15:55:39 UTC) #7
droger
lgtm https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc#newcode5 chrome/browser/translate/translate_manager_render_view_host_unittest.cc:5: #include "chrome/browser/translate/translate_manager.h" Nit: this should not be at ...
6 years, 9 months ago (2014-03-04 15:58:33 UTC) #8
danakj
https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc#newcode5 chrome/browser/translate/translate_manager_render_view_host_unittest.cc:5: #include "chrome/browser/translate/translate_manager.h" On 2014/03/04 15:58:33, droger wrote: > Nit: ...
6 years, 9 months ago (2014-03-04 16:01:51 UTC) #9
droger
https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc#newcode5 chrome/browser/translate/translate_manager_render_view_host_unittest.cc:5: #include "chrome/browser/translate/translate_manager.h" My opinion is that this file is ...
6 years, 9 months ago (2014-03-04 16:10:24 UTC) #10
danakj
https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): https://codereview.chromium.org/186063007/diff/90004/chrome/browser/translate/translate_manager_render_view_host_unittest.cc#newcode5 chrome/browser/translate/translate_manager_render_view_host_unittest.cc:5: #include "chrome/browser/translate/translate_manager.h" On 2014/03/04 16:10:25, droger wrote: > My ...
6 years, 9 months ago (2014-03-04 16:12:21 UTC) #11
hajimehoshi
lgtm
6 years, 9 months ago (2014-03-04 16:28:12 UTC) #12
danakj
Thanks!
6 years, 9 months ago (2014-03-04 16:39:06 UTC) #13
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-04 16:39:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-04 16:39:56 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 21:13:28 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=274265
6 years, 9 months ago (2014-03-04 21:13:29 UTC) #17
danakj
InMemoryURLIndexTest.Retrieval keeps failing which is not one of the tests I moved, trying again.
6 years, 9 months ago (2014-03-04 21:15:04 UTC) #18
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-04 21:15:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-04 21:17:32 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 21:22:32 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-04 21:22:32 UTC) #22
danakj
On 2014/03/04 21:22:32, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 9 months ago (2014-03-04 21:23:22 UTC) #23
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-04 21:23:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-04 21:27:05 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 21:32:26 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-04 21:32:26 UTC) #27
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 9 months ago (2014-03-04 21:48:01 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-04 21:53:35 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 21:56:36 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-04 21:56:37 UTC) #31
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 9 months ago (2014-03-04 22:12:16 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-04 22:14:05 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 22:55:13 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-04 22:55:13 UTC) #35
danakj
Somehow these tests end up causing the ComponentUpdaterPingManagerTest.PingManagerTest test to crash: [ RUN ] ComponentUpdaterPingManagerTest.PingManagerTest ...
6 years, 9 months ago (2014-03-05 00:16:21 UTC) #36
danakj
On 2014/03/05 00:16:21, danakj wrote: > Somehow these tests end up causing the > ComponentUpdaterPingManagerTest.PingManagerTest ...
6 years, 9 months ago (2014-03-05 19:31:40 UTC) #37
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-05 19:42:48 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-05 19:47:18 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-05 20:04:52 UTC) #40
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=155956
6 years, 9 months ago (2014-03-05 20:04:53 UTC) #41
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-05 20:07:49 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-05 20:08:26 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/110001
6 years, 9 months ago (2014-03-05 23:56:44 UTC) #44
commit-bot: I haz the power
Change committed as 255192
6 years, 9 months ago (2014-03-06 01:08:49 UTC) #45
danakj
Reopening, looks like a test in here is not too flaky for the CQ, but ...
6 years, 9 months ago (2014-03-06 20:06:28 UTC) #46
danakj
PTAL The latest patch resolves one test causing the next to fail by adding TranslateService::InitializeForTesting() ...
6 years, 9 months ago (2014-03-06 21:54:16 UTC) #47
hajimehoshi
Does this problem happen only on unit tests? lgtm with nits https://codereview.chromium.org/186063007/diff/150001/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): ...
6 years, 9 months ago (2014-03-07 03:54:49 UTC) #48
droger
lgtm
6 years, 9 months ago (2014-03-07 08:08:28 UTC) #49
danakj
> Does this problem happen only on unit tests? AFAIK yes. This happens on unit ...
6 years, 9 months ago (2014-03-07 16:29:52 UTC) #50
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 9 months ago (2014-03-07 16:30:23 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/186063007/170001
6 years, 9 months ago (2014-03-07 16:30:43 UTC) #52
hajimehoshi
https://codereview.chromium.org/186063007/diff/150001/chrome/browser/translate/translate_service.cc File chrome/browser/translate/translate_service.cc (right): https://codereview.chromium.org/186063007/diff/150001/chrome/browser/translate/translate_service.cc#newcode46 chrome/browser/translate/translate_service.cc:46: // This path is only used by tests. On ...
6 years, 9 months ago (2014-03-07 16:56:37 UTC) #53
danakj
https://codereview.chromium.org/186063007/diff/150001/chrome/browser/translate/translate_service.cc File chrome/browser/translate/translate_service.cc (right): https://codereview.chromium.org/186063007/diff/150001/chrome/browser/translate/translate_service.cc#newcode46 chrome/browser/translate/translate_service.cc:46: // This path is only used by tests. On ...
6 years, 9 months ago (2014-03-07 17:08:28 UTC) #54
danakj
6 years, 9 months ago (2014-03-07 18:10:56 UTC) #55
Message was sent while issue was closed.
Committed patchset #9 manually as r255661 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698