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

Issue 5783005: PluginList: Unit tests and bugfixes (Closed)

Created:
10 years ago by Jakob Kummerow
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, Paweł Hajdan Jr., pastarmovj, brettw-cc_chromium.org
Visibility:
Public.

Description

PluginList: Unit tests and bugfixes This patch introduces unit tests for PluginList. Some refactoring/adapting was necessary to make that class testable. Also included are two bugfixes for the issues reported in bug 66505. BUG=66505 TEST=unit tests: PluginListTest.*:PluginGroupTest.*; manual: check that issues reported and screenshotted in bug 66505 no longer occur

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix a few details #

Total comments: 32

Patch Set 3 : address comments; rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -81 lines) Patch
M base/version.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M base/version.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_group.h View 1 2 5 chunks +13 lines, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_group.cc View 1 2 6 chunks +21 lines, -15 lines 0 comments Download
M webkit/glue/plugins/plugin_group_unittest.cc View 1 2 4 chunks +51 lines, -28 lines 0 comments Download
M webkit/glue/plugins/plugin_list.h View 1 2 6 chunks +28 lines, -19 lines 2 comments Download
M webkit/glue/plugins/plugin_list.cc View 1 2 6 chunks +22 lines, -19 lines 0 comments Download
A webkit/glue/plugins/plugin_list_unittest.cc View 1 2 1 chunk +202 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jakob Kummerow
Please review. This is currently (as of patch set 1) based on issue 5699005 patch ...
10 years ago (2010-12-14 15:45:00 UTC) #1
stuartmorgan
http://codereview.chromium.org/5783005/diff/1/webkit/glue/plugins/plugin_group.cc File webkit/glue/plugins/plugin_group.cc (right): http://codereview.chromium.org/5783005/diff/1/webkit/glue/plugins/plugin_group.cc#newcode121 webkit/glue/plugins/plugin_group.cc:121: DCHECK_EQ(0, version_->CompareTo(*other.version_)); I'm confused; you still aren't actually copying ...
10 years ago (2010-12-14 16:25:29 UTC) #2
Jakob Kummerow
http://codereview.chromium.org/5783005/diff/1/webkit/glue/plugins/plugin_group.cc File webkit/glue/plugins/plugin_group.cc (right): http://codereview.chromium.org/5783005/diff/1/webkit/glue/plugins/plugin_group.cc#newcode121 webkit/glue/plugins/plugin_group.cc:121: DCHECK_EQ(0, version_->CompareTo(*other.version_)); On 2010/12/14 16:25:29, stuartmorgan wrote: > I'm ...
10 years ago (2010-12-14 16:53:43 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_list.h File webkit/glue/plugins/plugin_list.h (right): http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_list.h#newcode233 webkit/glue/plugins/plugin_list.h:233: friend class plugin_test_internal::TestablePluginList; Couldn't you make the necessary methods ...
10 years ago (2010-12-14 20:18:34 UTC) #4
danno
here you go... http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_group.cc File webkit/glue/plugins/plugin_group.cc (right): http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_group.cc#newcode107 webkit/glue/plugins/plugin_group.cc:107: enabled_ = false; Please comment why ...
10 years ago (2010-12-15 10:42:12 UTC) #5
Jakob Kummerow
Addressed your comments. Please have another look. http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_group.cc File webkit/glue/plugins/plugin_group.cc (right): http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_group.cc#newcode107 webkit/glue/plugins/plugin_group.cc:107: enabled_ = ...
10 years ago (2010-12-15 18:03:27 UTC) #6
Bernhard Bauer
On Wed, Dec 15, 2010 at 18:03, <jkummerow@chromium.org> wrote: > Addressed your comments. Please have ...
10 years ago (2010-12-15 18:33:12 UTC) #7
jam
http://codereview.chromium.org/5783005/diff/19001/webkit/glue/plugins/plugin_list.h File webkit/glue/plugins/plugin_list.h (right): http://codereview.chromium.org/5783005/diff/19001/webkit/glue/plugins/plugin_list.h#newcode234 webkit/glue/plugins/plugin_list.h:234: // Constructors are private for singletons. nit: this comment ...
10 years ago (2010-12-15 19:41:57 UTC) #8
jam
http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_list.h File webkit/glue/plugins/plugin_list.h (right): http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_list.h#newcode233 webkit/glue/plugins/plugin_list.h:233: friend class plugin_test_internal::TestablePluginList; On 2010/12/15 18:03:27, jkummerow wrote: > ...
10 years ago (2010-12-15 19:43:39 UTC) #9
Jakob Kummerow
FYI, I have moved the bug fixes into a separate CL (5918003) in order to ...
10 years ago (2010-12-16 13:00:58 UTC) #10
Bernhard Bauer
http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_list_unittest.cc File webkit/glue/plugins/plugin_list_unittest.cc (right): http://codereview.chromium.org/5783005/diff/10001/webkit/glue/plugins/plugin_list_unittest.cc#newcode14 webkit/glue/plugins/plugin_list_unittest.cc:14: class TestablePluginList : public NPAPI::PluginList { On 2010/12/15 10:42:12, ...
10 years ago (2010-12-17 18:54:17 UTC) #11
Jakob Kummerow
9 years, 11 months ago (2011-01-25 08:21:25 UTC) #12
The remaining part of this CL, that is the unit tests for PluginList, have now
been (adapted and) landed as part of CL 5699005 by pastarmovj. I'm therefore
closing this issue.

Powered by Google App Engine
This is Rietveld 408576698