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

Issue 29347192: Issue 4181 - Fix FilterEngineTest tests (Closed)

Created:
July 1, 2016, 1:27 p.m. by anton
Modified:
May 10, 2017, 11 a.m.
CC:
René Jeschke
Visibility:
Public.

Description

Issue 4181 - Fix FilterEngineTest tests #depends on https://codereview.adblockplus.org/29344967/

Patch Set 1 #

Patch Set 2 : Changes with applied Eyeo's codestyle (2-space indentation) #

Total comments: 7

Patch Set 3 : Made FileSystemUtils methods static #

Total comments: 2

Patch Set 4 : marked method as static #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+701 lines, -569 lines) Patch
A libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java View 1 2 3 1 chunk +90 lines, -0 lines 2 comments Download
M libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/BaseJsTest.java View 1 2 1 chunk +42 lines, -10 lines 0 comments Download
M libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java View 1 2 chunks +348 lines, -345 lines 2 comments Download
M libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java View 1 1 chunk +221 lines, -214 lines 2 comments Download

Messages

Total messages: 9
anton
After discussion of the issues with sergey i've found that JsEngine stores it's state persistently ...
July 1, 2016, 1:33 p.m. (2016-07-01 13:33:07 UTC) #1
anton
https://codereview.adblockplus.org/29347192/diff/29349043/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java File libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java (right): https://codereview.adblockplus.org/29347192/diff/29349043/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java#newcode25 libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java:25: public class FileSystemUtils also renamed FileSystemHelper to FileSystemUtils to ...
Aug. 8, 2016, 7:52 a.m. (2016-08-08 07:52:52 UTC) #2
diegocarloslima
https://codereview.adblockplus.org/29347192/diff/29349043/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java File libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java (right): https://codereview.adblockplus.org/29347192/diff/29349043/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java#newcode27 libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java:27: private static final String TAG = FileSystemUtils.class.getSimpleName(); You might ...
Sept. 9, 2016, 1:34 a.m. (2016-09-09 01:34:15 UTC) #3
anton
https://codereview.adblockplus.org/29347192/diff/29349043/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java File libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java (right): https://codereview.adblockplus.org/29347192/diff/29349043/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java#newcode27 libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java:27: private static final String TAG = FileSystemUtils.class.getSimpleName(); On 2016/09/09 ...
Sept. 9, 2016, 6:50 a.m. (2016-09-09 06:50:53 UTC) #4
diegocarloslima
https://codereview.adblockplus.org/29347192/diff/29352560/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java File libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java (right): https://codereview.adblockplus.org/29347192/diff/29352560/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java#newcode53 libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java:53: public void delete(String filePath, boolean deleteSelf) This method is ...
Nov. 3, 2016, 2:06 p.m. (2016-11-03 14:06:03 UTC) #5
anton
https://codereview.adblockplus.org/29347192/diff/29352560/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java File libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java (right): https://codereview.adblockplus.org/29347192/diff/29352560/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java#newcode53 libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java:53: public void delete(String filePath, boolean deleteSelf) On 2016/11/03 14:06:02, ...
Dec. 2, 2016, 6:15 a.m. (2016-12-02 06:15:03 UTC) #6
diegocarloslima
On 2016/12/02 06:15:03, anton wrote: > https://codereview.adblockplus.org/29347192/diff/29352560/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java > File > libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java > (right): > > ...
Feb. 3, 2017, 6:03 p.m. (2017-02-03 18:03:59 UTC) #7
Felix Dahlke
Sorry for the long delay - better late than never I guess :) https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java File ...
May 9, 2017, 8:06 a.m. (2017-05-09 08:06:46 UTC) #8
anton
May 10, 2017, 11 a.m. (2017-05-10 11:00:14 UTC) #9
No need to continue with this code review, please see new one:
https://codereview.adblockplus.org/29435584/

https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-andr...
File
libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java
(right):

https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-andr...
libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java:53:
public static void delete(String filePath, boolean deleteSelf)
On 2017/05/09 08:06:45, Felix Dahlke wrote:
> I may have missed something, but it appears `deleteSelf` is never set to
> anything but `true`. So maybe we should just assume that behaviour here? I'm
not
> a fan of having unused code paths.

Done.

https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-andr...
File
libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java
(right):

https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-andr...
libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java:29:
@Test
On 2017/05/09 08:06:45, Felix Dahlke wrote:
> This looks like a mere indentation change - I'd prefer it if we could land
this
> as a separate commit first. Noissue is fine.

Lot's of changes were done since that times, this file changes are already done.
See updated code review

https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-andr...
File
libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java
(right):

https://codereview.adblockplus.org/29347192/diff/29366723/libadblockplus-andr...
libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/UpdateCheckTest.java:38:
protected String previousRequestUrl;
On 2017/05/09 08:06:45, Felix Dahlke wrote:
> Looks like more indentation changes. As before, could we land this separately?
> The same Noissue commit as the previous indentation fixes is fine.

Lot's of changes were done since that times, this file changes are already done.
See updated code review

Powered by Google App Engine
This is Rietveld