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

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

Issue 29348972: Issue 4239 - Change indentation to reflect our coding style (Closed)
Patch Set: Created Aug. 2, 2016, 10:43 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/tests/FilterEngineUpdaterTest.java
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java
index cbd4220fc4b3b08308bfb761d40b346726f76b9d..86296d8085fbe0fbf6398d2de0c1231a95e3c838 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineUpdaterTest.java
@@ -25,29 +25,29 @@ import org.junit.Test;
public class FilterEngineUpdaterTest extends UpdaterTest
{
- @Test
- public void testSetRemoveUpdateAvailableCallback() throws InterruptedException
- {
- mockWebRequest.response.setStatus(ServerResponse.NsStatus.OK);
- mockWebRequest.response.setResponseStatus(200);
- mockWebRequest.response.setResponse(
- "{\n" +
- " \"test\": {\n" +
- " \"version\": \"1.0.2\",\n" +
- " \"url\": \"https://downloads.adblockplus.org/test-1.0.2.tar.gz?update\"\n" +
- " }\n" +
- "}");
+ @Test
+ public void testSetRemoveUpdateAvailableCallback() throws InterruptedException
+ {
+ mockWebRequest.response.setStatus(ServerResponse.NsStatus.OK);
+ mockWebRequest.response.setResponseStatus(200);
+ mockWebRequest.response.setResponse(
+ "{\n" +
+ " \"test\": {\n" +
+ " \"version\": \"1.0.2\",\n" +
+ " \"url\": \"https://downloads.adblockplus.org/test-1.0.2.tar.gz?update\"\n" +
+ " }\n" +
+ "}");
- MockUpdateAvailableCallback mockUpdateAvailableCallback =
- new MockUpdateAvailableCallback(0);
- filterEngine.setUpdateAvailableCallback(mockUpdateAvailableCallback);
- filterEngine.forceUpdateCheck(new NoOpUpdaterCallback());
- Thread.sleep(1000);
- assertEquals(1, mockUpdateAvailableCallback.getTimesCalled());
+ MockUpdateAvailableCallback mockUpdateAvailableCallback =
+ new MockUpdateAvailableCallback(0);
+ filterEngine.setUpdateAvailableCallback(mockUpdateAvailableCallback);
+ filterEngine.forceUpdateCheck(new NoOpUpdaterCallback());
+ Thread.sleep(1000);
+ assertEquals(1, mockUpdateAvailableCallback.getTimesCalled());
- filterEngine.removeUpdateAvailableCallback();
- filterEngine.forceUpdateCheck(new NoOpUpdaterCallback());
- Thread.sleep(1000);
- assertEquals(1, mockUpdateAvailableCallback.getTimesCalled());
- }
+ filterEngine.removeUpdateAvailableCallback();
+ filterEngine.forceUpdateCheck(new NoOpUpdaterCallback());
+ Thread.sleep(1000);
+ assertEquals(1, mockUpdateAvailableCallback.getTimesCalled());
+ }
}

Powered by Google App Engine
This is Rietveld