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

Issue 8947021: Destroy all Singletons and LazyInstances between each test. (Closed)

Created:
9 years ago by Robert Sesek
Modified:
6 years, 8 months ago
CC:
chromium-reviews, GeorgeY, cbentzel+watch_chromium.org, dhollowa+watch_chromium.org, brettw-cc_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dyu1, Paweł Hajdan Jr., Ilya Sherman
Visibility:
Public.

Description

Destroy all Singletons and LazyInstances between each test. This modifies base::TestSuite to add a test listener that runs the AtExitManager between each test. BUG=110594, 156433, 238654 TEST=*unit*tests R=apatrick@chromium.org, phajdan.jr@chromium.org, pneubeck@chromium.org, rsleevi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202305 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=202312

Patch Set 1 #

Patch Set 2 : Split CL #

Patch Set 3 : Mac only for now #

Patch Set 4 : All test suites #

Patch Set 5 : Rebase #

Patch Set 6 : Disable ONCCertificateImporterTest #

Patch Set 7 : Ready #

Patch Set 8 : Fix ShaderInitializer #

Patch Set 9 : Ready for realz #

Total comments: 2

Patch Set 10 : Remove override #

Total comments: 10

Patch Set 11 : Comments #

Patch Set 12 : NSS #

Total comments: 4

Patch Set 13 : Rebase ToT #

Patch Set 14 : Resurrect() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M base/memory/singleton.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +30 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Robert Sesek
I think this may stick this time! apactrick: gpu/ phajdan: base/test/
7 years, 7 months ago (2013-05-07 18:06:20 UTC) #1
jam
https://codereview.chromium.org/8947021/diff/68002/base/test/test_suite.h File base/test/test_suite.h (right): https://codereview.chromium.org/8947021/diff/68002/base/test/test_suite.h#newcode65 base/test/test_suite.h:65: virtual void EnableSingletonTestIsolation(); i highly suggest not adding this ...
7 years, 7 months ago (2013-05-07 18:09:56 UTC) #2
Robert Sesek
https://codereview.chromium.org/8947021/diff/68002/base/test/test_suite.h File base/test/test_suite.h (right): https://codereview.chromium.org/8947021/diff/68002/base/test/test_suite.h#newcode65 base/test/test_suite.h:65: virtual void EnableSingletonTestIsolation(); On 2013/05/07 18:09:57, jam wrote: > ...
7 years, 7 months ago (2013-05-07 18:12:29 UTC) #3
apatrick_chromium
lgtm
7 years, 7 months ago (2013-05-07 19:16:41 UTC) #4
Robert Sesek
Pawel: ping
7 years, 7 months ago (2013-05-07 23:58:55 UTC) #5
Paweł Hajdan Jr.
https://codereview.chromium.org/8947021/diff/73002/base/test/test_suite.cc File base/test/test_suite.cc (right): https://codereview.chromium.org/8947021/diff/73002/base/test/test_suite.cc#newcode80 base/test/test_suite.cc:80: // between tests. nit: Let's add some text here ...
7 years, 7 months ago (2013-05-08 16:32:25 UTC) #6
Robert Sesek
+pneubeck for cros https://codereview.chromium.org/8947021/diff/73002/base/test/test_suite.cc File base/test/test_suite.cc (right): https://codereview.chromium.org/8947021/diff/73002/base/test/test_suite.cc#newcode80 base/test/test_suite.cc:80: // between tests. On 2013/05/08 16:32:25, ...
7 years, 7 months ago (2013-05-08 16:42:11 UTC) #7
Paweł Hajdan Jr.
LGTM
7 years, 7 months ago (2013-05-08 23:33:53 UTC) #8
Robert Sesek
+gspencer for chromeos/network stamp
7 years, 7 months ago (2013-05-09 14:29:44 UTC) #9
Greg Spencer (Chromium)
I understand why this is important, and that it is more correct, and I agree ...
7 years, 7 months ago (2013-05-09 17:23:29 UTC) #10
jam
On 2013/05/09 17:23:29, Greg Spencer (Chromium) wrote: > I understand why this is important, and ...
7 years, 7 months ago (2013-05-09 17:26:27 UTC) #11
Greg Spencer (Chromium)
On 2013/05/09 17:26:27, jam wrote: > note: an option is to turn this on, but ...
7 years, 7 months ago (2013-05-09 17:28:00 UTC) #12
Ilya Sherman
Incidentally, does this fix [ https://code.google.com/p/chromium/issues/detail?id=125931 ]? If so, could you update the comment in ...
7 years, 7 months ago (2013-05-09 23:13:09 UTC) #13
Robert Sesek
I've tracked down the problem with the ChromeOS test to be NSS-related. I got most ...
7 years, 7 months ago (2013-05-22 14:52:34 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/8947021/diff/93002/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/8947021/diff/93002/crypto/nss_util.cc#newcode359 crypto/nss_util.cc:359: bool OpenTestNSSDB() { I'm not fully sure I understood ...
7 years, 7 months ago (2013-05-22 19:50:59 UTC) #15
Robert Sesek
https://codereview.chromium.org/8947021/diff/93002/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/8947021/diff/93002/crypto/nss_util.cc#newcode359 crypto/nss_util.cc:359: bool OpenTestNSSDB() { On 2013/05/22 19:50:59, Ryan Sleevi wrote: ...
7 years, 7 months ago (2013-05-23 16:55:16 UTC) #16
Ryan Sleevi
The Sleep(1) is fine by me, even though it's a giant hack. I've traced the ...
7 years, 7 months ago (2013-05-24 01:39:41 UTC) #17
Robert Sesek
On 2013/05/24 01:39:41, Ryan Sleevi wrote: > The Sleep(1) is fine by me, even though ...
7 years, 7 months ago (2013-05-24 02:40:56 UTC) #18
pneubeck (no reviews)
Totally. lgtm. And thanks for that thorough investigation!
7 years, 7 months ago (2013-05-24 20:02:38 UTC) #19
Greg Spencer (Chromium)
On 2013/05/24 20:02:38, pneubeck wrote: > Totally. lgtm. > And thanks for that thorough investigation! ...
7 years, 7 months ago (2013-05-24 20:13:39 UTC) #20
Robert Sesek
Thanks. Ryan: Can I haz a crypto/ LG? I'll attempt to land this on over ...
7 years, 7 months ago (2013-05-24 20:23:59 UTC) #21
Ryan Sleevi
lgtm
7 years, 7 months ago (2013-05-24 20:42:16 UTC) #22
Robert Sesek
7 years, 7 months ago (2013-05-25 17:42:26 UTC) #23
Message was sent while issue was closed.
Committed patchset #12 manually as r202305.

Powered by Google App Engine
This is Rietveld 408576698