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

Unified Diff: content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java

Issue 23253005: [Android] Small java changes for EMMA code coverage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds comments Created 7 years, 4 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
« no previous file with comments | « chrome/android/testshell/java/AndroidManifest.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java b/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
index a887ffb051ffae7eabd0c9bb5376b584a8a9072d..6f56449195e530d9c50cfec672bce130a4831a69 100644
--- a/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
@@ -58,6 +58,8 @@ public class CleanupReferenceTest extends InstrumentationTestCase {
assertEquals(1, sObjectCount.get());
instance = null;
+ // Ensure compiler / instrumentation does not strip out the assignment.
+ assertTrue(instance == null);
collectGarbage();
assertTrue(CriteriaHelper.pollForCriteria(new Criteria() {
@Override
@@ -81,6 +83,8 @@ public class CleanupReferenceTest extends InstrumentationTestCase {
}
instances = null;
+ // Ensure compiler / instrumentation does not strip out the assignment.
+ assertTrue(instances == null);
collectGarbage();
assertTrue(CriteriaHelper.pollForCriteria(new Criteria() {
@Override
« no previous file with comments | « chrome/android/testshell/java/AndroidManifest.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698