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

Issue 694423003: CodeGen: simplify unit tests [2/3] (Closed)

Created:
6 years, 1 month ago by mdempsky
Modified:
6 years, 1 month ago
CC:
chromium-reviews, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@codegen-api
Project:
chromium
Visibility:
Public.

Description

CodeGen: simplify unit tests [2/3] Most of CodeGen's unit tests cover internal algorithmic details that are about to go away, so remove them all except for the one truly interesting test: the graph implied from the original MakeInstruction() calls should match the graph implied from the resulting BPF program. BUG=414363 Committed: https://crrev.com/9681fa57fcb814f0cacee84cecd4e751ce33553a Cr-Commit-Position: refs/heads/master@{#304525}

Patch Set 1 #

Patch Set 2 : Pull up cleanup from patch set 3 #

Total comments: 2

Patch Set 3 : Add EXPECT to make sure iterator is valid #

Total comments: 8

Patch Set 4 : Respond to jln feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -334 lines) Patch
M sandbox/linux/seccomp-bpf/codegen_unittest.cc View 1 2 3 7 chunks +164 lines, -334 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
mdempsky
6 years, 1 month ago (2014-11-04 00:56:12 UTC) #2
rickyz (no longer on Chrome)
lgtm https://codereview.chromium.org/694423003/diff/20001/sandbox/linux/seccomp-bpf/codegen_unittest.cc File sandbox/linux/seccomp-bpf/codegen_unittest.cc (right): https://codereview.chromium.org/694423003/diff/20001/sandbox/linux/seccomp-bpf/codegen_unittest.cc#newcode166 sandbox/linux/seccomp-bpf/codegen_unittest.cc:166: return addr_hashes_.find(next)->second; Maybe assert that the entry is ...
6 years, 1 month ago (2014-11-05 23:36:57 UTC) #3
mdempsky
https://codereview.chromium.org/694423003/diff/20001/sandbox/linux/seccomp-bpf/codegen_unittest.cc File sandbox/linux/seccomp-bpf/codegen_unittest.cc (right): https://codereview.chromium.org/694423003/diff/20001/sandbox/linux/seccomp-bpf/codegen_unittest.cc#newcode166 sandbox/linux/seccomp-bpf/codegen_unittest.cc:166: return addr_hashes_.find(next)->second; On 2014/11/05 23:36:57, rickyz wrote: > Maybe ...
6 years, 1 month ago (2014-11-06 02:42:43 UTC) #4
jln (very slow on Chromium)
lgtm https://chromiumcodereview.appspot.com/694423003/diff/40001/sandbox/linux/seccomp-bpf/codegen_unittest.cc File sandbox/linux/seccomp-bpf/codegen_unittest.cc (right): https://chromiumcodereview.appspot.com/694423003/diff/40001/sandbox/linux/seccomp-bpf/codegen_unittest.cc#newcode45 sandbox/linux/seccomp-bpf/codegen_unittest.cc:45: Hash(const Hash& hash) : digest_(hash.digest_) {} = default ...
6 years, 1 month ago (2014-11-14 04:54:29 UTC) #5
mdempsky
https://codereview.chromium.org/694423003/diff/40001/sandbox/linux/seccomp-bpf/codegen_unittest.cc File sandbox/linux/seccomp-bpf/codegen_unittest.cc (right): https://codereview.chromium.org/694423003/diff/40001/sandbox/linux/seccomp-bpf/codegen_unittest.cc#newcode45 sandbox/linux/seccomp-bpf/codegen_unittest.cc:45: Hash(const Hash& hash) : digest_(hash.digest_) {} On 2014/11/14 04:54:29, ...
6 years, 1 month ago (2014-11-17 23:00:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/694423003/60001
6 years, 1 month ago (2014-11-17 23:30:28 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-18 00:22:13 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 00:23:00 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9681fa57fcb814f0cacee84cecd4e751ce33553a
Cr-Commit-Position: refs/heads/master@{#304525}

Powered by Google App Engine
This is Rietveld 408576698