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

Issue 10833044: Refactored ErrorCode into it's own class (Closed)

Created:
8 years, 5 months ago by Markus (顧孟勤)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, agl, jln+watch_chromium.org
Visibility:
Public.

Description

Refactored ErrorCode into it's own class. Removed operators and made them explicit functions. Added code that allows testing of the sandbox infrastructure with Valgrind (this currently only works when building with the Makefile; we still need to decide if and how we want to expose this to our unittests). Added a way to unittest the ErrorCode class. BUG=n/a TEST=sandbox_linux_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154397

Patch Set 1 #

Patch Set 2 : Rebased, and removed "protected" as requested by jln #

Total comments: 17

Patch Set 3 : Made changes requested by reviewer (jln) #

Total comments: 6

Patch Set 4 : Added unittest (and new framework to make this possible) #

Total comments: 10

Patch Set 5 : Rebased after we moved the unittest framework into its own CL #

Total comments: 12

Patch Set 6 : Cosmetic changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -196 lines) Patch
M content/common/sandbox_seccomp_bpf_linux.cc View 1 2 3 4 9 chunks +38 lines, -34 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/Makefile View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M sandbox/linux/seccomp-bpf/demo.cc View 1 2 4 chunks +6 lines, -4 lines 0 comments Download
A sandbox/linux/seccomp-bpf/errorcode.h View 1 2 3 4 5 1 chunk +132 lines, -0 lines 0 comments Download
A sandbox/linux/seccomp-bpf/errorcode.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download
A sandbox/linux/seccomp-bpf/errorcode_unittest.cc View 1 2 3 4 5 1 chunk +77 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.h View 1 2 3 4 12 chunks +30 lines, -83 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 2 3 4 16 chunks +66 lines, -43 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc View 1 2 3 4 5 5 chunks +15 lines, -15 lines 0 comments Download
M sandbox/linux/seccomp-bpf/util.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/util.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jln (very slow on Chromium)
Here is a first pass, mostly style guide nit picking. As general remarks: - accessor ...
8 years, 4 months ago (2012-07-27 19:46:30 UTC) #1
Markus (顧孟勤)
PTAL
8 years, 4 months ago (2012-07-30 18:30:27 UTC) #2
jln (very slow on Chromium)
A few minor nits remaining. https://chromiumcodereview.appspot.com/10833044/diff/13001/sandbox/linux/seccomp-bpf/errorcode.cc File sandbox/linux/seccomp-bpf/errorcode.cc (right): https://chromiumcodereview.appspot.com/10833044/diff/13001/sandbox/linux/seccomp-bpf/errorcode.cc#newcode35 sandbox/linux/seccomp-bpf/errorcode.cc:35: error_type_(ET_TRAP), See below for ...
8 years, 4 months ago (2012-07-30 18:50:39 UTC) #3
jln (very slow on Chromium)
Please don't forget the unit tests, and perhaps to edit the commit message, I believe ...
8 years, 4 months ago (2012-07-30 19:01:45 UTC) #4
Markus (顧孟勤)
Based on the feedback that you gave me offline, I added code to unit_tests.{cc,h} and ...
8 years, 4 months ago (2012-08-14 00:31:49 UTC) #5
jln (very slow on Chromium)
Could you split the CL for unit_tests.cc into its own CL ? Here are the ...
8 years, 4 months ago (2012-08-14 01:48:13 UTC) #6
Markus (顧孟勤)
PTAL
8 years, 3 months ago (2012-08-31 00:37:22 UTC) #7
jln (very slow on Chromium)
Looks good overall, with some nits. I didn't point out all the "type* blah" ones. ...
8 years, 3 months ago (2012-08-31 01:16:00 UTC) #8
jln (very slow on Chromium)
lgtm
8 years, 3 months ago (2012-08-31 02:01:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markus@chromium.org/10833044/30001
8 years, 3 months ago (2012-08-31 02:05:52 UTC) #10
commit-bot: I haz the power
8 years, 3 months ago (2012-08-31 06:33:37 UTC) #11
Change committed as 154397

Powered by Google App Engine
This is Rietveld 408576698