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

Issue 981223004: Add test for ProcessSingleton hung rendezvous case. (Closed)

Created:
5 years, 9 months ago by Sigurður Ásgeirsson
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a test for ProcessSingleton hung rendezvous case. BUG=464733 Committed: https://crrev.com/2a0214bf578d1ccc77aa216fe36acfe865499bec Cr-Commit-Position: refs/heads/master@{#320277}

Patch Set 1 #

Patch Set 2 : A bit of cleanup, now passes first test. #

Patch Set 3 : Add appropriate test seams to make the test run quickly, and without user interaction. #

Patch Set 4 : Now tests the user interaction cases. #

Total comments: 20

Patch Set 5 : Address Erik's comments. #

Patch Set 6 : Fix speling[sic]. #

Total comments: 40

Patch Set 7 : Address Gab's comments. #

Total comments: 8

Patch Set 8 : Rebase to ToT. #

Patch Set 9 : Address Gab's remaining comments. #

Total comments: 13

Patch Set 10 : Address Scott's comments. #

Patch Set 11 : Clean up in short-lived test process. Moar comments. #

Total comments: 2

Patch Set 12 : Address Scott's remaining comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -19 lines) Patch
M chrome/browser/chrome_process_finder_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_process_finder_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/process_singleton.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -8 lines 0 comments Download
A chrome/browser/process_singleton_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +318 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
Sigurður Ásgeirsson
Erik for content, please. Nico for owners, please.
5 years, 9 months ago (2015-03-10 18:44:13 UTC) #2
erikwright (departed)
https://codereview.chromium.org/981223004/diff/60001/chrome/browser/chrome_process_finder_win.h File chrome/browser/chrome_process_finder_win.h (right): https://codereview.chromium.org/981223004/diff/60001/chrome/browser/chrome_process_finder_win.h#newcode33 chrome/browser/chrome_process_finder_win.h:33: int SetNotificationTimeoutForTesting(int new_timeout); The name should include "InSeconds" https://codereview.chromium.org/981223004/diff/60001/chrome/browser/process_singleton_win.cc ...
5 years, 9 months ago (2015-03-10 19:22:49 UTC) #3
Sigurður Ásgeirsson
Thanks, PTAL? https://codereview.chromium.org/981223004/diff/60001/chrome/browser/chrome_process_finder_win.h File chrome/browser/chrome_process_finder_win.h (right): https://codereview.chromium.org/981223004/diff/60001/chrome/browser/chrome_process_finder_win.h#newcode33 chrome/browser/chrome_process_finder_win.h:33: int SetNotificationTimeoutForTesting(int new_timeout); On 2015/03/10 19:22:49, erikwright ...
5 years, 9 months ago (2015-03-10 19:48:15 UTC) #4
erikwright (departed)
LGTM.
5 years, 9 months ago (2015-03-10 19:50:08 UTC) #5
gab
Very very nice! Comments/suggestions below, mostly around improving readability. Cheers! Gab https://codereview.chromium.org/981223004/diff/100001/chrome/browser/chrome_process_finder_win.cc File chrome/browser/chrome_process_finder_win.cc (right): ...
5 years, 9 months ago (2015-03-11 13:20:40 UTC) #7
Sigurður Ásgeirsson
thanks - please take another look? https://codereview.chromium.org/981223004/diff/100001/chrome/browser/chrome_process_finder_win.cc File chrome/browser/chrome_process_finder_win.cc (right): https://codereview.chromium.org/981223004/diff/100001/chrome/browser/chrome_process_finder_win.cc#newcode33 chrome/browser/chrome_process_finder_win.cc:33: int timeout_in_seconds = ...
5 years, 9 months ago (2015-03-11 14:32:38 UTC) #8
gab
A few more comments. Thanks, Gab https://codereview.chromium.org/981223004/diff/100001/chrome/browser/chrome_process_finder_win.cc File chrome/browser/chrome_process_finder_win.cc (right): https://codereview.chromium.org/981223004/diff/100001/chrome/browser/chrome_process_finder_win.cc#newcode167 chrome/browser/chrome_process_finder_win.cc:167: return old_timeout; On ...
5 years, 9 months ago (2015-03-11 15:19:43 UTC) #9
Sigurður Ásgeirsson
On Wed, Mar 11, 2015 at 11:19 AM <gab@chromium.org> wrote: > A few more comments. ...
5 years, 9 months ago (2015-03-11 15:44:30 UTC) #10
erikwright (departed)
Tests should leave the state the way they found it. They do not run in ...
5 years, 9 months ago (2015-03-11 15:50:20 UTC) #11
gab
On 2015/03/11 15:50:20, erikwright wrote: > Tests should leave the state the way they found ...
5 years, 9 months ago (2015-03-11 15:55:35 UTC) #12
Sigurður Ásgeirsson
'k - all comments addressed. https://codereview.chromium.org/981223004/diff/120001/chrome/browser/process_singleton.h File chrome/browser/process_singleton.h (right): https://codereview.chromium.org/981223004/diff/120001/chrome/browser/process_singleton.h#newcode99 chrome/browser/process_singleton.h:99: void OverrideKillMessageBoxCallbackForTesting( On 2015/03/11 ...
5 years, 9 months ago (2015-03-11 16:36:11 UTC) #14
gab
Woot, lgtm++, this is awesome :-)!
5 years, 9 months ago (2015-03-11 17:56:34 UTC) #15
Sigurður Ásgeirsson
Scott - can I ask you for owners approval, as it appears Nico's OOO?
5 years, 9 months ago (2015-03-11 18:13:51 UTC) #17
sky
https://codereview.chromium.org/981223004/diff/180001/chrome/browser/chrome_process_finder_win.cc File chrome/browser/chrome_process_finder_win.cc (right): https://codereview.chromium.org/981223004/diff/180001/chrome/browser/chrome_process_finder_win.cc#newcode31 chrome/browser/chrome_process_finder_win.cc:31: const int kDefaultTimeoutInSeconds = 20; There is no point ...
5 years, 9 months ago (2015-03-11 19:15:52 UTC) #18
Sigurður Ásgeirsson
Thanks, please take another look? Note that this is the companion test for the fix ...
5 years, 9 months ago (2015-03-11 20:15:31 UTC) #20
sky
https://codereview.chromium.org/981223004/diff/180001/chrome/browser/process_singleton_win_unittest.cc File chrome/browser/process_singleton_win_unittest.cc (right): https://codereview.chromium.org/981223004/diff/180001/chrome/browser/process_singleton_win_unittest.cc#newcode64 chrome/browser/process_singleton_win_unittest.cc:64: HWND window = ::CreateWindow(reinterpret_cast<LPCWSTR>(clazz), 0, WS_POPUP, 0, On 2015/03/11 ...
5 years, 9 months ago (2015-03-11 20:19:27 UTC) #21
gab
https://codereview.chromium.org/981223004/diff/180001/chrome/browser/chrome_process_finder_win.cc File chrome/browser/chrome_process_finder_win.cc (right): https://codereview.chromium.org/981223004/diff/180001/chrome/browser/chrome_process_finder_win.cc#newcode33 chrome/browser/chrome_process_finder_win.cc:33: int g_timeout_in_seconds = kDefaultTimeoutInSeconds; On 2015/03/11 19:15:51, sky wrote: ...
5 years, 9 months ago (2015-03-11 20:25:35 UTC) #22
sky
https://codereview.chromium.org/981223004/diff/180001/chrome/browser/chrome_process_finder_win.cc File chrome/browser/chrome_process_finder_win.cc (right): https://codereview.chromium.org/981223004/diff/180001/chrome/browser/chrome_process_finder_win.cc#newcode33 chrome/browser/chrome_process_finder_win.cc:33: int g_timeout_in_seconds = kDefaultTimeoutInSeconds; On 2015/03/11 20:25:35, gab wrote: ...
5 years, 9 months ago (2015-03-11 20:27:59 UTC) #23
Sigurður Ásgeirsson
Cleanup enacted, comments improved (I hope) - another look?
5 years, 9 months ago (2015-03-11 20:45:22 UTC) #24
sky
LGTM https://codereview.chromium.org/981223004/diff/230001/chrome/browser/process_singleton_win_unittest.cc File chrome/browser/process_singleton_win_unittest.cc (right): https://codereview.chromium.org/981223004/diff/230001/chrome/browser/process_singleton_win_unittest.cc#newcode91 chrome/browser/process_singleton_win_unittest.cc:91: }; DISALLOW_COPY_AND_ASSIGN.
5 years, 9 months ago (2015-03-11 21:55:35 UTC) #25
Nico
chrome/ lgtm. Thanks much for getting back to this :-)
5 years, 9 months ago (2015-03-12 00:46:49 UTC) #26
Sigurður Ásgeirsson
Thanks, committing. https://codereview.chromium.org/981223004/diff/230001/chrome/browser/process_singleton_win_unittest.cc File chrome/browser/process_singleton_win_unittest.cc (right): https://codereview.chromium.org/981223004/diff/230001/chrome/browser/process_singleton_win_unittest.cc#newcode91 chrome/browser/process_singleton_win_unittest.cc:91: }; On 2015/03/11 21:55:35, sky wrote: > ...
5 years, 9 months ago (2015-03-12 13:40:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981223004/250001
5 years, 9 months ago (2015-03-12 13:40:58 UTC) #30
commit-bot: I haz the power
Committed patchset #12 (id:250001)
5 years, 9 months ago (2015-03-12 14:50:37 UTC) #31
commit-bot: I haz the power
5 years, 9 months ago (2015-03-12 14:51:40 UTC) #32
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2a0214bf578d1ccc77aa216fe36acfe865499bec
Cr-Commit-Position: refs/heads/master@{#320277}

Powered by Google App Engine
This is Rietveld 408576698