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

Issue 2898753002: ReadDirectory() added in webrtc/test/testsupport/fileutils.h (Closed)

Created:
3 years, 7 months ago by AleBzk
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

In order to land https://codereview.webrtc.org/2790933002/ and due to the ongoing clean-up work (see https://codereview.webrtc.org/2887093002, https://codereview.webrtc.org/2894583002/ and https://codereview.webrtc.org/2891923002/), ReadDirectory() has been added in webrtc/test/testsupport/fileutils.h. BUG=NOBUG Review-Url: https://codereview.webrtc.org/2898753002 Cr-Commit-Position: refs/heads/master@{#18369} Committed: https://chromium.googlesource.com/external/webrtc/+/00b16f4dc89c5b3eee62d69309e678e49359227f

Patch Set 1 : DirectoryIterator from base fileutils #

Patch Set 2 : commented lines removed #

Total comments: 2

Patch Set 3 : ReadDirectory() as function, no recursive deletion #

Total comments: 1

Patch Set 4 : win build fix #

Patch Set 5 : add trailing sep char to dir paths #

Total comments: 8

Patch Set 6 : comments from Niels addressed #

Total comments: 6

Patch Set 7 : nits #

Total comments: 20

Patch Set 8 : comments from Karl addressed #

Total comments: 4

Patch Set 9 : nits #

Total comments: 3

Patch Set 10 : final changes and win trybot fix gtest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -4 lines) Patch
M webrtc/test/testsupport/fileutils.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M webrtc/test/testsupport/fileutils.cc View 1 2 3 4 5 6 7 8 9 4 chunks +55 lines, -1 line 0 comments Download
M webrtc/test/testsupport/fileutils_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +70 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (18 generated)
AleBzk
Hi, As discussed offline, I need to land this CL in order to land others ...
3 years, 7 months ago (2017-05-22 16:04:38 UTC) #5
kjellander_webrtc
lgtm if this is fine with nisse@ https://codereview.webrtc.org/2898753002/diff/40001/webrtc/test/testsupport/fileutils_unittest.cc File webrtc/test/testsupport/fileutils_unittest.cc (right): https://codereview.webrtc.org/2898753002/diff/40001/webrtc/test/testsupport/fileutils_unittest.cc#newcode38 webrtc/test/testsupport/fileutils_unittest.cc:38: void WriteStringInFile(const ...
3 years, 7 months ago (2017-05-22 18:22:20 UTC) #6
nisse-webrtc
I'm afraid I see a couple of issues. First, DirectoryIterator is on my kill list, ...
3 years, 7 months ago (2017-05-23 07:21:16 UTC) #7
AleBzk
Hi, Thanks for your answers. PTAL. Alessio https://codereview.webrtc.org/2898753002/diff/60001/webrtc/test/testsupport/fileutils_unittest.cc File webrtc/test/testsupport/fileutils_unittest.cc (right): https://codereview.webrtc.org/2898753002/diff/60001/webrtc/test/testsupport/fileutils_unittest.cc#newcode32 webrtc/test/testsupport/fileutils_unittest.cc:32: static const ...
3 years, 7 months ago (2017-05-23 10:51:55 UTC) #9
AleBzk
https://codereview.webrtc.org/2898753002/diff/40001/webrtc/test/testsupport/fileutils_unittest.cc File webrtc/test/testsupport/fileutils_unittest.cc (right): https://codereview.webrtc.org/2898753002/diff/40001/webrtc/test/testsupport/fileutils_unittest.cc#newcode38 webrtc/test/testsupport/fileutils_unittest.cc:38: void WriteStringInFile(const std::string& what, const std::string& file_path) { On ...
3 years, 7 months ago (2017-05-23 11:10:10 UTC) #10
nisse-webrtc
https://codereview.webrtc.org/2898753002/diff/100001/webrtc/base/fileutils.h File webrtc/base/fileutils.h (right): https://codereview.webrtc.org/2898753002/diff/100001/webrtc/base/fileutils.h#newcode46 webrtc/base/fileutils.h:46: // the first entry in the directory. I don't ...
3 years, 6 months ago (2017-05-29 07:20:40 UTC) #11
AleBzk
Hi Niels, Thanks a lot! Everything has been addressed. Cheers, Alessio https://codereview.webrtc.org/2898753002/diff/100001/webrtc/base/fileutils.h File webrtc/base/fileutils.h (right): ...
3 years, 6 months ago (2017-05-29 09:50:51 UTC) #12
nisse-webrtc
LGTM, % a few final nits. https://codereview.webrtc.org/2898753002/diff/120001/webrtc/test/testsupport/fileutils.cc File webrtc/test/testsupport/fileutils.cc (right): https://codereview.webrtc.org/2898753002/diff/120001/webrtc/test/testsupport/fileutils.cc#newcode219 webrtc/test/testsupport/fileutils.cc:219: if (path.length() == ...
3 years, 6 months ago (2017-05-29 10:56:39 UTC) #13
AleBzk
https://codereview.webrtc.org/2898753002/diff/120001/webrtc/test/testsupport/fileutils.cc File webrtc/test/testsupport/fileutils.cc (right): https://codereview.webrtc.org/2898753002/diff/120001/webrtc/test/testsupport/fileutils.cc#newcode219 webrtc/test/testsupport/fileutils.cc:219: if (path.length() == 0 || !DirExists(path)) return false; On ...
3 years, 6 months ago (2017-05-29 11:09:30 UTC) #14
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/2898753002/140001
3 years, 6 months ago (2017-05-29 11:24:42 UTC) #17
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/17490)
3 years, 6 months ago (2017-05-29 11:28:13 UTC) #19
AleBzk
Hi Karl, I need approval from an owner of webrtc/base for this CL. Could you ...
3 years, 6 months ago (2017-05-29 11:35:19 UTC) #22
kwiberg-webrtc
Ironically, if you remove the uncalled-for reformatting, you'll no longer be making any changes in ...
3 years, 6 months ago (2017-05-29 12:11:36 UTC) #23
AleBzk
Thanks a lot Karl, everything addressed. If you wish, take a look at CleanDir() in ...
3 years, 6 months ago (2017-05-29 13:04:48 UTC) #24
kwiberg-webrtc
lgtm, but see comments https://codereview.webrtc.org/2898753002/diff/140001/webrtc/test/testsupport/fileutils.h File webrtc/test/testsupport/fileutils.h (right): https://codereview.webrtc.org/2898753002/diff/140001/webrtc/test/testsupport/fileutils.h#newcode74 webrtc/test/testsupport/fileutils.h:74: bool ReadDirectory(std::string path, std::vector<std::string>* output); ...
3 years, 6 months ago (2017-05-30 08:28:12 UTC) #25
AleBzk
https://codereview.webrtc.org/2898753002/diff/140001/webrtc/test/testsupport/fileutils.h File webrtc/test/testsupport/fileutils.h (right): https://codereview.webrtc.org/2898753002/diff/140001/webrtc/test/testsupport/fileutils.h#newcode74 webrtc/test/testsupport/fileutils.h:74: bool ReadDirectory(std::string path, std::vector<std::string>* output); On 2017/05/30 08:28:12, kwiberg-webrtc ...
3 years, 6 months ago (2017-05-30 11:09:16 UTC) #26
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/2898753002/180001
3 years, 6 months ago (2017-05-30 11:09:39 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_rel/builds/26482) win_x64_rel on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 6 months ago (2017-05-30 11:14:13 UTC) #31
nisse-webrtc
https://codereview.webrtc.org/2898753002/diff/180001/webrtc/test/testsupport/fileutils.cc File webrtc/test/testsupport/fileutils.cc (right): https://codereview.webrtc.org/2898753002/diff/180001/webrtc/test/testsupport/fileutils.cc#newcode273 webrtc/test/testsupport/fileutils.cc:273: return ReadDirectoryWin(path); To me, it was more readable with ...
3 years, 6 months ago (2017-05-30 12:18:53 UTC) #33
kwiberg-webrtc
https://codereview.webrtc.org/2898753002/diff/180001/webrtc/test/testsupport/fileutils.cc File webrtc/test/testsupport/fileutils.cc (right): https://codereview.webrtc.org/2898753002/diff/180001/webrtc/test/testsupport/fileutils.cc#newcode273 webrtc/test/testsupport/fileutils.cc:273: return ReadDirectoryWin(path); On 2017/05/30 12:18:53, nisse-webrtc wrote: > To ...
3 years, 6 months ago (2017-05-30 12:37:00 UTC) #34
nisse-webrtc
https://codereview.webrtc.org/2898753002/diff/180001/webrtc/test/testsupport/fileutils.cc File webrtc/test/testsupport/fileutils.cc (right): https://codereview.webrtc.org/2898753002/diff/180001/webrtc/test/testsupport/fileutils.cc#newcode273 webrtc/test/testsupport/fileutils.cc:273: return ReadDirectoryWin(path); On 2017/05/30 12:37:00, kwiberg-webrtc wrote: > On ...
3 years, 6 months ago (2017-05-30 12:55:25 UTC) #35
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/2898753002/200001
3 years, 6 months ago (2017-06-01 09:58:00 UTC) #38
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 10:29:45 UTC) #41
Message was sent while issue was closed.
Committed patchset #10 (id:200001) as
https://chromium.googlesource.com/external/webrtc/+/00b16f4dc89c5b3eee62d6930...

Powered by Google App Engine
This is Rietveld 408576698