Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10260028: Refactor tests, use fixtures and avoid duplication (Closed)

Created:
April 19, 2013, 2:38 p.m. by Felix Dahlke
Modified:
April 29, 2013, 9:39 a.m.
Reviewers:
Wladimir Palant
CC:
Oleksandr
Visibility:
Public.

Description

This also makes the tests a bit better, since the default JsEngine instance used by all tests throws exceptions when any unexpected errors are logged or any unexpected I/O is done. There's still a big TODO in FilterEngine, which actually logs a couple of errors and does a bit of I/O right now. I'm planning to remedy that, but I think it's worth doing in a separate review. Please ignore the project file changes involving FILTER_ENGINE_STUBS.

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -257 lines) Patch
M MSVS/libadblockplus.vcxproj View 1 chunk +1 line, -1 line 0 comments Download
M MSVS/tests.vcxproj View 2 chunks +4 lines, -1 line 0 comments Download
M MSVS/tests.vcxproj.filters View 1 chunk +5 lines, -0 lines 0 comments Download
A test/BaseJsTest.h View 1 chunk +67 lines, -0 lines 0 comments Download
M test/ConsoleJsObject.cpp View 1 chunk +35 lines, -24 lines 0 comments Download
M test/FileSystemJsObject.cpp View 5 chunks +47 lines, -69 lines 0 comments Download
M test/FilterEngine.cpp View 3 chunks +56 lines, -91 lines 0 comments Download
M test/GlobalJsObject.cpp View 1 chunk +12 lines, -11 lines 0 comments Download
M test/JsEngine.cpp View 2 chunks +10 lines, -21 lines 0 comments Download
M test/JsValue.cpp View 9 chunks +17 lines, -20 lines 0 comments Download
M test/WebRequest.cpp View 3 chunks +22 lines, -19 lines 0 comments Download

Messages

Total messages: 2
Felix Dahlke
April 19, 2013, 3:02 p.m. (2013-04-19 15:02:01 UTC) #1
Wladimir Palant
April 26, 2013, 12:04 p.m. (2013-04-26 12:04:53 UTC) #2
Nice cleanup, LGTM

Powered by Google App Engine
This is Rietveld