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

Issue 1016873004: [NaCl SDK] Rewrite nacl_io::Path to avoid STL. (Closed)

Created:
5 years, 9 months ago by binji
Modified:
5 years, 9 months ago
Reviewers:
Sam Clegg
CC:
chromium-reviews, binji+watch_chromium.org, Sam Clegg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] Rewrite nacl_io::Path to avoid STL. Path used to be a std::vector<std::string>. Now it is just a C array of size PATH_MAX. The code has a lot of nasty edge cases because it is trying to match the previous behavior. Really, all this code should be axed -- it is incorrect to handle paths the way nacl_io does currently. AFAICT, the only place that should have to handle paths is the path lookup routine. Fixing that is a much larger change. BUG=none R=sbc@chromium.org Committed: https://crrev.com/fea846358e7c2efe04bdeb4b01ecccee6efe7759 Cr-Commit-Position: refs/heads/master@{#321386}

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix PathTest.Empty #

Patch Set 3 : comments + overflow bug #

Total comments: 4

Patch Set 4 : remove redundant parent test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -353 lines) Patch
M native_client_sdk/src/libraries/nacl_io/path.h View 1 2 5 chunks +11 lines, -23 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/path.cc View 1 2 6 chunks +175 lines, -111 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/path_test.cc View 1 2 3 1 chunk +183 lines, -219 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
binji
5 years, 9 months ago (2015-03-18 17:01:30 UTC) #1
Sam Clegg
I love this kind of change. Sad to see that tests change so much though.. ...
5 years, 9 months ago (2015-03-18 18:11:12 UTC) #2
binji
Yes, I did rewrite the tests to make it more clear what was being tested. ...
5 years, 9 months ago (2015-03-19 00:53:18 UTC) #3
Sam Clegg
lgtm https://codereview.chromium.org/1016873004/diff/1/native_client_sdk/src/libraries/nacl_io/path.cc File native_client_sdk/src/libraries/nacl_io/path.cc (right): https://codereview.chromium.org/1016873004/diff/1/native_client_sdk/src/libraries/nacl_io/path.cc#newcode108 native_client_sdk/src/libraries/nacl_io/path.cc:108: len_ = path.length(); On 2015/03/19 00:53:18, binji wrote: ...
5 years, 9 months ago (2015-03-19 01:03:05 UTC) #4
binji
https://codereview.chromium.org/1016873004/diff/1/native_client_sdk/src/libraries/nacl_io/path.cc File native_client_sdk/src/libraries/nacl_io/path.cc (right): https://codereview.chromium.org/1016873004/diff/1/native_client_sdk/src/libraries/nacl_io/path.cc#newcode108 native_client_sdk/src/libraries/nacl_io/path.cc:108: len_ = path.length(); On 2015/03/19 01:03:05, Sam Clegg wrote: ...
5 years, 9 months ago (2015-03-19 16:42:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1016873004/60001
5 years, 9 months ago (2015-03-19 16:42:49 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-19 17:25:52 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 17:26:44 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fea846358e7c2efe04bdeb4b01ecccee6efe7759
Cr-Commit-Position: refs/heads/master@{#321386}

Powered by Google App Engine
This is Rietveld 408576698