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

Issue 2944493002: [Windows Sandbox Tests] Process Mitigations. (Closed)

Created:
3 years, 6 months ago by penny
Modified:
3 years, 5 months ago
Reviewers:
Will Harris
CC:
chromium-reviews, wfh+watch_chromium.org, pennymac+watch_chromium.org, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, forshaw
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Windows Sandbox Tests] Re-format process mitigation tests. - Rename process_mitigations_test.cc -> process_mitigations_unittest.cc - Pull large chunks out of process_mitigations_unittest.cc into unittest files of their own. The size was getting way out of hand. - New files for existing tests: extensionpoints, imageload, win32k. - NO new functionality tests in this CL - only re-organized things: - Note: the existing tests for every process mitigation that just check policy enabling have been centralized into one single test target function (SBOX_TESTS_COMMAND) called CheckPolicy. Any new mitigation checks should be added here as well. - Note: The individual mitigation TESTs that trigger "CheckPolicy" have been adjusted to ensure we test both pre and post child-process startup wherever they are supported. TEST= sbox_integration_tests.exe, ProcessMitigationsTest.* BUG=733739 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng TBR=forshaw,wfh Review-Url: https://codereview.chromium.org/2944493002 Cr-Commit-Position: refs/heads/master@{#485387} Committed: https://chromium.googlesource.com/chromium/src/+/661bc439df8ba9d5205af4acb617f640acaf2f1f

Patch Set 1 #

Total comments: 9

Patch Set 2 : Code review fixes, part 1. #

Total comments: 13

Patch Set 3 : Code review fixes, part 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2233 lines, -1860 lines) Patch
M sandbox/win/BUILD.gn View 1 2 chunks +6 lines, -3 lines 0 comments Download
A sandbox/win/src/process_mitigations_extensionpoints_unittest.cc View 1 2 1 chunk +521 lines, -0 lines 0 comments Download
A sandbox/win/src/process_mitigations_imageload_unittest.cc View 1 2 1 chunk +248 lines, -0 lines 0 comments Download
D sandbox/win/src/process_mitigations_test.cc View 1 chunk +0 lines, -1814 lines 0 comments Download
A sandbox/win/src/process_mitigations_unittest.cc View 1 2 1 chunk +677 lines, -0 lines 0 comments Download
A sandbox/win/src/process_mitigations_win32k_unittest.cc View 1 2 1 chunk +687 lines, -0 lines 0 comments Download
A sandbox/win/tests/integration_tests/hooking_dll.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M sandbox/win/tests/integration_tests/hooking_dll.cc View 1 3 chunks +8 lines, -5 lines 0 comments Download
A sandbox/win/tests/integration_tests/hooking_win_proc.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
M sandbox/win/tests/integration_tests/hooking_win_proc.cc View 1 2 3 chunks +12 lines, -8 lines 0 comments Download
M sandbox/win/tests/integration_tests/integration_tests.cc View 1 2 1 chunk +13 lines, -1 line 0 comments Download
M sandbox/win/tests/integration_tests/integration_tests_common.h View 1 1 chunk +17 lines, -29 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
penny
Hi Will, I've split the original CL (https://codereview.chromium.org/2827123003/) into 2. This is CL#1. See description. ...
3 years, 6 months ago (2017-06-15 20:03:10 UTC) #8
penny
Also, I've got CL#2 ready to go locally, but I'll wait until we land this ...
3 years, 6 months ago (2017-06-15 20:17:44 UTC) #9
grt (UTC plus 2)
ridiculous drive-by comments below. feel free to disregard. ;-) https://codereview.chromium.org/2944493002/diff/1/sandbox/win/BUILD.gn File sandbox/win/BUILD.gn (right): https://codereview.chromium.org/2944493002/diff/1/sandbox/win/BUILD.gn#newcode186 sandbox/win/BUILD.gn:186: ...
3 years, 6 months ago (2017-06-15 20:58:19 UTC) #10
Will Harris
still looking, more comments to follow. https://codereview.chromium.org/2944493002/diff/1/sandbox/win/BUILD.gn File sandbox/win/BUILD.gn (right): https://codereview.chromium.org/2944493002/diff/1/sandbox/win/BUILD.gn#newcode186 sandbox/win/BUILD.gn:186: "src/process_mitigations_unittest_extensionpoints.cc", On 2017/06/15 ...
3 years, 6 months ago (2017-06-15 22:32:13 UTC) #11
Will Harris
can you address the variable declaration issues, perhaps by putting the common variables in their ...
3 years, 6 months ago (2017-06-21 12:18:11 UTC) #12
penny
Hello Will (and Greg), I think I've hit all your items in this update. Let ...
3 years, 5 months ago (2017-06-27 20:43:50 UTC) #15
grt (UTC plus 2)
i'll defer to wfh unless you really need an extra set of eyes. thanks. https://codereview.chromium.org/2944493002/diff/20001/sandbox/win/src/process_mitigations_extensionpoints_unittest.cc ...
3 years, 5 months ago (2017-06-28 12:16:55 UTC) #18
Will Harris
I think maybe it's a stylistic thing but the constants in the .h files still ...
3 years, 5 months ago (2017-06-28 12:27:55 UTC) #19
penny
Here's round 2 Will! https://codereview.chromium.org/2944493002/diff/20001/sandbox/win/src/process_mitigations_unittest.cc File sandbox/win/src/process_mitigations_unittest.cc (right): https://codereview.chromium.org/2944493002/diff/20001/sandbox/win/src/process_mitigations_unittest.cc#newcode453 sandbox/win/src/process_mitigations_unittest.cc:453: std::wstring test_command = L"CheckPolicy "; ...
3 years, 5 months ago (2017-06-28 22:33:34 UTC) #22
penny
Landing this CL now. wfh is ooo for the next while. The next half of ...
3 years, 5 months ago (2017-07-10 19:39:34 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.chromium.org/2944493002/40001
3 years, 5 months ago (2017-07-10 19:40:16 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/661bc439df8ba9d5205af4acb617f640acaf2f1f
3 years, 5 months ago (2017-07-10 21:10:07 UTC) #33
penny
3 years, 5 months ago (2017-07-17 18:17:07 UTC) #34
Message was sent while issue was closed.
FYI: CL2 at https://chromium-review.googlesource.com/c/566286.

Powered by Google App Engine
This is Rietveld 408576698