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

Issue 2540693002: Replace test_support_main by test_main and get rid of test_support_main_threaded_mac (Closed)

Created:
4 years ago by ehmaldonado_webrtc
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, danilchap, kwiberg-webrtc, zhuangzesen_agora.io, Andrew MacDonald, zhengzhonghou_agora.io, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, sdk-team_agora.io, peah-webrtc, minyue-webrtc, the sun, mflodman, fengyue_agora.io, perkj_webrtc, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace test_support_main by test_main and get rid of test_support_main_threaded_mac test_support_main_threaded_mac doesn't seem to be used. It looks like it was last used about a year and a half ago, and was removed in https://webrtc-codereview.appspot.com/55379004 BUG=webrtc:6424 R=kjellander@webrtc.org NOTRY=True Committed: https://crrev.com/26bddb92f0f76c08bd0dbf5efe4909128ef0a90b Cr-Commit-Position: refs/heads/master@{#15332}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Actually delete test_support_main_threaded_mac. #

Patch Set 3 : Added missing flags and GoogleMock initialization. #

Total comments: 2

Patch Set 4 : Adressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -309 lines) Patch
M webrtc/common_audio/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_audio/resampler/sinc_resampler_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/common_video/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/BUILD.gn View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 7 chunks +7 lines, -7 lines 0 comments Download
M webrtc/modules/audio_coding/acm2/acm_receiver_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/audio_device/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_capture/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/system_wrappers/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/test/BUILD.gn View 1 2 4 chunks +3 lines, -42 lines 0 comments Download
D webrtc/test/run_all_unittests.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M webrtc/test/test_main.cc View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
D webrtc/test/test_suite.h View 1 chunk +0 lines, -51 lines 0 comments Download
D webrtc/test/test_suite.cc View 1 chunk +0 lines, -64 lines 0 comments Download
D webrtc/test/testsupport/mac/run_threaded_main_mac.h View 1 chunk +0 lines, -22 lines 0 comments Download
D webrtc/test/testsupport/mac/run_threaded_main_mac.mm View 1 chunk +0 lines, -90 lines 0 comments Download
M webrtc/tools/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/codec_test.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 48 (23 generated)
ehmaldonado_webrtc
Was surprisingly easy
4 years ago (2016-11-29 12:59:45 UTC) #8
kjellander_webrtc
I like the removal of test_support_main_threaded_mac but I don't see the point of replacing test_support_main ...
4 years ago (2016-11-29 13:39:34 UTC) #11
ehmaldonado_webrtc
Patrik, what do you think? Should we keep test_support_main and clean up test_main instead? https://codereview.webrtc.org/2540693002/diff/20001/webrtc/test/test_suite.cc ...
4 years ago (2016-11-29 14:04:52 UTC) #13
ehmaldonado_webrtc
https://codereview.webrtc.org/2540693002/diff/20001/webrtc/test/test_suite.cc File webrtc/test/test_suite.cc (left): https://codereview.webrtc.org/2540693002/diff/20001/webrtc/test/test_suite.cc#oldcode22 webrtc/test/test_suite.cc:22: DEFINE_bool(logs, false, "print logs to stderr"); On 2016/11/29 14:04:52, ...
4 years ago (2016-11-29 14:05:53 UTC) #14
phoglund
lgtm
4 years ago (2016-11-29 14:23:39 UTC) #15
phoglund
I don't know which is better out of test_support_main or test_main, but I think we ...
4 years ago (2016-11-29 14:27:47 UTC) #16
ehmaldonado_webrtc
On 2016/11/29 14:27:47, phoglund wrote: > I don't know which is better out of test_support_main ...
4 years ago (2016-11-29 14:29:16 UTC) #17
phoglund
Ok, so run_all_unittests.cc + TestSuite effectively does the same thing as test_main.cc. I think it's ...
4 years ago (2016-11-29 14:30:36 UTC) #18
phoglund
On 2016/11/29 14:30:36, phoglund wrote: > Ok, so run_all_unittests.cc + TestSuite effectively does the same ...
4 years ago (2016-11-29 14:32:20 UTC) #19
ehmaldonado_webrtc
On 2016/11/29 14:32:20, phoglund wrote: > On 2016/11/29 14:30:36, phoglund wrote: > > Ok, so ...
4 years ago (2016-11-29 14:33:17 UTC) #20
kjellander_webrtc
On 2016/11/29 14:33:17, ehmaldonado_webrtc wrote: > On 2016/11/29 14:32:20, phoglund wrote: > > On 2016/11/29 ...
4 years ago (2016-11-29 14:34:51 UTC) #21
ehmaldonado_webrtc
On 2016/11/29 14:34:51, kjellander_webrtc wrote: > On 2016/11/29 14:33:17, ehmaldonado_webrtc wrote: > > On 2016/11/29 ...
4 years ago (2016-11-29 15:22:24 UTC) #22
kjellander_webrtc
Two things left to fix. https://codereview.webrtc.org/2540693002/diff/60001/webrtc/test/test_main.cc File webrtc/test/test_main.cc (left): https://codereview.webrtc.org/2540693002/diff/60001/webrtc/test/test_main.cc#oldcode33 webrtc/test/test_main.cc:33: google::AllowCommandLineReparsing(); We need to ...
4 years ago (2016-11-30 06:29:44 UTC) #23
ehmaldonado_webrtc
On 2016/11/30 06:29:44, kjellander_webrtc wrote: > Two things left to fix. > > https://codereview.webrtc.org/2540693002/diff/60001/webrtc/test/test_main.cc > ...
4 years ago (2016-11-30 11:58:46 UTC) #25
kjellander_webrtc
lgtm
4 years ago (2016-11-30 12:24:09 UTC) #28
phoglund
lgtm
4 years ago (2016-11-30 12:46:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2540693002/100001
4 years ago (2016-11-30 12:50:52 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/10863)
4 years ago (2016-11-30 12:54:02 UTC) #36
kjellander_webrtc
On 2016/11/30 12:54:02, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-11-30 13:04:50 UTC) #37
ehmaldonado_webrtc
henrika: Can you rubberstamp, please?
4 years ago (2016-11-30 13:32:43 UTC) #39
henrika_webrtc
LGTM
4 years ago (2016-11-30 13:51:20 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2540693002/100001
4 years ago (2016-11-30 14:10:23 UTC) #42
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years ago (2016-11-30 14:12:07 UTC) #45
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/26bddb92f0f76c08bd0dbf5efe4909128ef0a90b Cr-Commit-Position: refs/heads/master@{#15332}
4 years ago (2016-11-30 14:12:16 UTC) #47
nisse-webrtc
4 years ago (2016-11-30 14:19:38 UTC) #48
Message was sent while issue was closed.
On 2016/11/29 14:27:47, phoglund wrote:
> I don't know which is better out of test_support_main or test_main, but I
think
> we should choose one of them? They do the same thing right?

There's also base/unittest_main.cc, in the target rtc_base_tests_utils. No idea
what's using which main function.

Powered by Google App Engine
This is Rietveld 408576698