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

Issue 10702188: Fix unit test to allow repeated successful runs by avoiding a function static variable in tests. (Closed)

Created:
8 years, 5 months ago by Scott Byer
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix unit test to allow repeated successful runs by avoiding a function static variable in tests. BUG=137145 TEST=run unit_tests with --gtest_filter=ComponentInstallerTest.PepperFlashCheck --gtest_repeat=2 successfully. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146670 Reverted as http://src.chromium.org/viewvc/chrome?view=rev&revision=146672 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146690

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move files for DEPS fix #

Patch Set 3 : Simplify with a member variable #

Total comments: 4

Patch Set 4 : Additional cleanup #

Patch Set 5 : add DEPS file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -490 lines) Patch
M chrome/browser/component_updater/component_installers_unittest.cc View 1 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/component_updater/component_updater_service_unittest.cc View 1 1 chunk +0 lines, -417 lines 0 comments Download
A chrome/browser/component_updater/test/DEPS View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A + chrome/browser/component_updater/test/component_installers_unittest.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
A + chrome/browser/component_updater/test/component_updater_service_unittest.cc View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/shared_impl/ppapi_globals.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppapi_globals.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Scott Byer
I ran across this while trying to solidify up some other tests. The test was ...
8 years, 5 months ago (2012-07-12 22:53:02 UTC) #1
brettw
David: you added the CR_DEFINE_STATIC_LOCAL(scoped_refptr<base::MessageLoopProxy>, in ppapi_globals.cc. Is there any reason this couldn't just be ...
8 years, 5 months ago (2012-07-12 23:11:40 UTC) #2
dmichael (off chromium)
On Jul 12, 2012 5:11 PM, <brettw@chromium.org> wrote: > > David: you added the > ...
8 years, 5 months ago (2012-07-12 23:53:29 UTC) #3
brettw
I was thinking it could just be a class member variable (not static at all). ...
8 years, 5 months ago (2012-07-12 23:57:56 UTC) #4
Scott Byer
+cpu for the component_updater part. Went with a member variable; it does simplify things. http://codereview.chromium.org/10702188/diff/1/chrome/chrome_tests.gypi ...
8 years, 5 months ago (2012-07-13 16:18:43 UTC) #5
brettw
lgtm http://codereview.chromium.org/10702188/diff/8001/chrome/browser/component_updater/test/component_installers_unittest.cc File chrome/browser/component_updater/test/component_installers_unittest.cc (right): http://codereview.chromium.org/10702188/diff/8001/chrome/browser/component_updater/test/component_installers_unittest.cc#newcode43 chrome/browser/component_updater/test/component_installers_unittest.cc:43: scoped_ptr<ppapi::TestGlobals> for_test( I think you can just make ...
8 years, 5 months ago (2012-07-13 16:36:22 UTC) #6
dmichael (off chromium)
ppapi_globals LGTM too, with Brett's comments. http://codereview.chromium.org/10702188/diff/8001/ppapi/shared_impl/ppapi_globals.cc File ppapi/shared_impl/ppapi_globals.cc (right): http://codereview.chromium.org/10702188/diff/8001/ppapi/shared_impl/ppapi_globals.cc#newcode47 ppapi/shared_impl/ppapi_globals.cc:47: message_loop_proxy_ = base::MessageLoopProxy::current(); ...
8 years, 5 months ago (2012-07-13 16:44:58 UTC) #7
cpu_(ooo_6.6-7.5)
rubber stamp lgtm of the CU files.
8 years, 5 months ago (2012-07-13 17:56:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10702188/12001
8 years, 5 months ago (2012-07-13 19:32:27 UTC) #9
commit-bot: I haz the power
Try job failure for 10702188-12001 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-13 20:41:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10702188/12001
8 years, 5 months ago (2012-07-13 20:58:55 UTC) #11
commit-bot: I haz the power
Change committed as 146670
8 years, 5 months ago (2012-07-13 22:20:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10702188/22001
8 years, 5 months ago (2012-07-13 22:46:57 UTC) #13
commit-bot: I haz the power
8 years, 5 months ago (2012-07-14 00:05:12 UTC) #14
Change committed as 146690

Powered by Google App Engine
This is Rietveld 408576698