Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java

Issue 657163004: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java
index ddca9a79ec0a644a1bd27dda616c9813bcb6518d..fb3d110327f5cab127a79d25c21e22f78f642adf 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ChildProcessLauncherTest.java
@@ -61,19 +61,19 @@ public class ChildProcessLauncherTest extends InstrumentationTestCase {
// Verify that the connection gets cleaned-up.
assertTrue("Crashed connection wasn't released from the allocator.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return ChildProcessLauncher.allocatedConnectionsCountForTesting() == 0;
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return ChildProcessLauncher.allocatedConnectionsCountForTesting() == 0;
+ }
+ }));
assertTrue("Crashed connection wasn't released from ChildProcessLauncher.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return ChildProcessLauncher.connectedServicesCountForTesting() == 0;
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return ChildProcessLauncher.connectedServicesCountForTesting() == 0;
+ }
+ }));
}
/**
@@ -95,19 +95,19 @@ public class ChildProcessLauncherTest extends InstrumentationTestCase {
// Verify that the connection completes the setup.
assertTrue("The connection wasn't registered in ChildProcessLauncher after setup.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return ChildProcessLauncher.connectedServicesCountForTesting() == 1;
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return ChildProcessLauncher.connectedServicesCountForTesting() == 1;
+ }
+ }));
assertTrue("The connection failed to get a pid in setup.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return connection.getPid() != 0;
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return connection.getPid() != 0;
+ }
+ }));
// Crash the service.
assertTrue(connection.crashServiceForTesting());
@@ -115,19 +115,19 @@ public class ChildProcessLauncherTest extends InstrumentationTestCase {
// Verify that the connection gets cleaned-up.
assertTrue("Crashed connection wasn't released from the allocator.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return ChildProcessLauncher.allocatedConnectionsCountForTesting() == 0;
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return ChildProcessLauncher.allocatedConnectionsCountForTesting() == 0;
+ }
+ }));
assertTrue("Crashed connection wasn't released from ChildProcessLauncher.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return ChildProcessLauncher.connectedServicesCountForTesting() == 0;
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return ChildProcessLauncher.connectedServicesCountForTesting() == 0;
+ }
+ }));
// Verify that the connection pid remains set after termination.
assertTrue(connection.getPid() != 0);
@@ -142,11 +142,11 @@ public class ChildProcessLauncherTest extends InstrumentationTestCase {
// Wait for the service to connect.
assertTrue("The connection wasn't established.",
CriteriaHelper.pollForCriteria(new Criteria() {
- @Override
- public boolean isSatisfied() {
- return connection.isConnected();
- }
- }));
+ @Override
+ public boolean isSatisfied() {
+ return connection.isConnected();
+ }
+ }));
return connection;
}

Powered by Google App Engine
This is Rietveld 408576698