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

Issue 193046: linux: write a unit test for plugin mime parsing (Closed)

Created:
11 years, 3 months ago by Evan Martin
Modified:
9 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

linux: write a unit test for plugin mime parsing No significant code change, just preparing to redo the parsing code and thinking I needed test coverage. (Since the parse can fail now, made the parse error out rather than continuing when it's unable to parse some fields. This will have more failure cases in the next version of this code.)

Patch Set 1 #

Patch Set 2 : leak #

Total comments: 3

Patch Set 3 : japanese #

Patch Set 4 : japanese #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -22 lines) Patch
M webkit/glue/plugins/plugin_lib.h View 2 chunks +9 lines, -0 lines 0 comments Download
M webkit/glue/plugins/plugin_lib_linux.cc View 1 2 chunks +39 lines, -22 lines 0 comments Download
A webkit/glue/plugins/plugin_lib_unittest.cc View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Evan Martin
11 years, 3 months ago (2009-09-08 22:32:43 UTC) #1
piman
http://codereview.chromium.org/193046/diff/2001/2003 File webkit/glue/plugins/plugin_lib_linux.cc (right): http://codereview.chromium.org/193046/diff/2001/2003#newcode86 Line 86: base::UnloadNativeLibrary(dl); We didn't use to do that. Now, ...
11 years, 3 months ago (2009-09-08 22:48:29 UTC) #2
Evan Martin
updated with one additional test of japanese input http://codereview.chromium.org/193046/diff/2001/2003 File webkit/glue/plugins/plugin_lib_linux.cc (right): http://codereview.chromium.org/193046/diff/2001/2003#newcode86 Line 86: ...
11 years, 3 months ago (2009-09-08 22:54:28 UTC) #3
Evan Martin
updated the description with what the functional change i made was
11 years, 3 months ago (2009-09-08 23:02:31 UTC) #4
piman
11 years, 3 months ago (2009-09-08 23:04:15 UTC) #5
LGTM. Thanks for the UTF8 test.

http://codereview.chromium.org/193046/diff/2001/2003
File webkit/glue/plugins/plugin_lib_linux.cc (right):

http://codereview.chromium.org/193046/diff/2001/2003#newcode86
Line 86: base::UnloadNativeLibrary(dl);
On 2009/09/08 22:54:28, Evan Martin wrote:
> On 2009/09/08 22:48:30, piman wrote:
> > We didn't use to do that. Now, it sounds like a good thing to do, but
> shouldn't
> > we do it whether we successfully parsed or not ?
> 
> Before, this parse couldn't fail, so we never had the error case.  We unload
in
> the success case on L109 below.

NVM, brain fart. I thought the } below was the end of the function.

Powered by Google App Engine
This is Rietveld 408576698