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

Issue 2058043002: Delete GetExecutablePath and related unused code. (Closed)

Created:
4 years, 6 months ago by nisse-webrtc
Modified:
4 years, 6 months ago
Reviewers:
fbarchard, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, fbarchard
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Delete GetExecutablePath and related unused code. The function GetExecutablePath is a hack with poor portability. Delete it and its caller GetTestFilePath. The latter was used in videoframe_unittest.h, where it is replaced by webrtc::test::ResourcePath. Delete unused functions declared in base/testutils.h: ReadFile, GetSiblingDirectory, GetGoogle3Directory, GetTalkDirectory, CmpHelperFileEq, EXPECT_FILEEQ, ASSERT_FILEEQ. Delete unused functions declared in media/base/testutils.h: GetTestFilePath (see above), LoadPlanarYuvTestImage, DumpPlanarYuvTestImage, ComputePSNR, ComputeSumSquareError. The functions LoadPlanarYuvTestImage, DumpPlanarYuvTestImage were used in yuvscaler_unittests.cc and planarfunctions_unittests.cc, under webrtc/pc. However, these tests are never compiled or run, and appear not to have been for the last few years, and are therefore deleted rather than updated. It might make sense to check if libyuv have comparable tests, and if not, resurrect them as part of libyuv unittests. BUG= R=perkj@webrtc.org Committed: https://crrev.com/b00dc386d3fe04412f5688266fe5ed5af131a3ee Cr-Commit-Position: refs/heads/master@{#13163}

Patch Set 1 #

Patch Set 2 : Add call to SetExecutablePath. Add link dependency. #

Patch Set 3 : Use std::unique_ptr, and fix leak. #

Patch Set 4 : Trivial rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -1829 lines) Patch
M webrtc/base/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/base_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/testutils.h View 3 chunks +0 lines, -70 lines 0 comments Download
M webrtc/base/unittest_main.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
D webrtc/media/base/executablehelpers.h View 1 chunk +0 lines, -83 lines 0 comments Download
M webrtc/media/base/testutils.h View 1 chunk +0 lines, -36 lines 0 comments Download
M webrtc/media/base/testutils.cc View 2 chunks +0 lines, -65 lines 0 comments Download
M webrtc/media/base/videoframe_unittest.h View 1 2 3 21 chunks +67 lines, -45 lines 0 comments Download
M webrtc/media/engine/webrtcvideoframe_unittest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/media/media.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
D webrtc/pc/planarfunctions_unittest.cc View 1 chunk +0 lines, -925 lines 0 comments Download
D webrtc/pc/yuvscaler_unittest.cc View 1 chunk +0 lines, -602 lines 0 comments Download

Messages

Total messages: 43 (22 generated)
nisse-webrtc
Frank, do you know what's the story of the unused libyuv-related unittests? Is there any ...
4 years, 6 months ago (2016-06-10 10:24:13 UTC) #2
perkj_webrtc
lgtm
4 years, 6 months ago (2016-06-10 11:44:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/1
4 years, 6 months ago (2016-06-13 09:02:27 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: mac_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_gn_rel/builds/10139)
4 years, 6 months ago (2016-06-13 09:05:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/20001
4 years, 6 months ago (2016-06-13 10:54:13 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14132)
4 years, 6 months ago (2016-06-13 11:00:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/20001
4 years, 6 months ago (2016-06-13 11:02:27 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/15441)
4 years, 6 months ago (2016-06-13 11:10:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/40001
4 years, 6 months ago (2016-06-13 13:46:27 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14145)
4 years, 6 months ago (2016-06-13 13:53:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/40001
4 years, 6 months ago (2016-06-13 13:55:59 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14148)
4 years, 6 months ago (2016-06-13 14:02:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/40001
4 years, 6 months ago (2016-06-13 14:09:11 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14150)
4 years, 6 months ago (2016-06-13 14:15:23 UTC) #29
fbarchard
Not sure why these are unused but the planar and scalar tests referred to came ...
4 years, 6 months ago (2016-06-13 17:35:12 UTC) #31
nisse-webrtc
On 2016/06/13 17:35:12, fbarchard wrote: > Not sure why these are unused but the planar ...
4 years, 6 months ago (2016-06-14 08:49:51 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/40001
4 years, 6 months ago (2016-06-16 10:00:50 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/8759)
4 years, 6 months ago (2016-06-16 10:28:54 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2058043002/40001
4 years, 6 months ago (2016-06-16 10:31:28 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_arm64_rel/builds/8761)
4 years, 6 months ago (2016-06-16 10:41:59 UTC) #40
nisse-webrtc
4 years, 6 months ago (2016-06-16 10:44:50 UTC) #42
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
b00dc386d3fe04412f5688266fe5ed5af131a3ee (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698