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

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/LazyFileSystem.java

Issue 29347315: Issue 4231 - Fix unstable FilterEngineTest.testSetRemoveFilterChangeCallback (Closed)
Patch Set: fix for firstRun test Created July 12, 2016, 1:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/LazyFileSystem.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/LazyFileSystem.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/LazyFileSystem.java
index 7a651a7e1ab728a8f994b7788f7ff47fd3407371..50ceeca9b69756e012879cf12e0e25ef24917d5c 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/LazyFileSystem.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/LazyFileSystem.java
@@ -21,6 +21,18 @@ import org.adblockplus.libadblockplus.FileSystem;
public class LazyFileSystem extends FileSystem
{
+ private boolean patternsIniExists = true;
René Jeschke 2016/07/12 16:00:42 Is there a point in making this flag modifiable _a
anton 2016/07/13 06:41:13 It's unknown if we need to change it after creatio
+
+ public boolean isPatternsIniExists()
+ {
+ return patternsIniExists;
+ }
+
+ public void setPatternsIniExists(boolean patternsIniExists)
+ {
+ this.patternsIniExists = patternsIniExists;
+ }
+
@Override
public String read(String path)
{
@@ -54,7 +66,7 @@ public class LazyFileSystem extends FileSystem
public StatResult stat(String path)
{
return path.equals("patterns.ini")
- ? new StatResult(true, false, true, 0)
+ ? new StatResult(patternsIniExists, false, true, 0)
: new StatResult(false, false, false, 0);
}
« no previous file with comments | « libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld