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

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

Issue 29344967: Issue 4031 - Implement tests for libadblockplus-android (Closed)
Patch Set: fixed "B" to "b" (Fhd) Created Sept. 13, 2016, 5:57 a.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
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingLogSystem.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingLogSystem.java
similarity index 78%
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java
copy to libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingLogSystem.java
index c3e766416f6dae1a9e28158f5542dd0648a50455..a77c780d9650301f5295303f0379100a3c2fd1c7 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/Disposable.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/ThrowingLogSystem.java
@@ -17,7 +17,11 @@
package org.adblockplus.libadblockplus;
-public interface Disposable
+public class ThrowingLogSystem extends LogSystem
{
- public void dispose();
+ @Override
+ public void logCallback(LogLevel level, String message, String source)
+ {
+ throw new RuntimeException("Unexpected error: " + message);
+ }
}

Powered by Google App Engine
This is Rietveld