Home
last modified time | relevance | path

Searched refs:leakageDetectorRule (Results 1 – 3 of 3) sorted by relevance

/libcore/test-rules/src/main/java/libcore/junit/util/
DResourceLeakageDetector.java54 LeakageDetectorRule leakageDetectorRule;
66 leakageDetectorRule = new LeakageDetectorRule((TestRule) method.invoke(null));
78 leakageDetectorRule = new LeakageDetectorRule(RuleChain.emptyRuleChain());
87 LEAKAGE_DETECTOR_RULE = leakageDetectorRule;
127 private final TestRule leakageDetectorRule; field in ResourceLeakageDetector.LeakageDetectorRule
130 private LeakageDetectorRule(TestRule leakageDetectorRule) { in LeakageDetectorRule() argument
131 this.leakageDetectorRule = leakageDetectorRule; in LeakageDetectorRule()
143 return leakageDetectorRule.apply(base, description); in apply()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousServerSocketChannelTest.java50 public LeakageDetectorRule leakageDetectorRule = ResourceLeakageDetector.getRule(); field in AsynchronousServerSocketChannelTest
358 leakageDetectorRule.assertUnreleasedResourceCount(asc, 1); in test_closeGuardSupport()
369 leakageDetectorRule.assertUnreleasedResourceCount(assc, 1); in test_closeGuardSupport_group()
DAsynchronousSocketChannelTest.java50 public LeakageDetectorRule leakageDetectorRule = ResourceLeakageDetector.getRule(); field in AsynchronousSocketChannelTest
911 leakageDetectorRule.assertUnreleasedResourceCount(asc, 1); in test_closeGuardSupport()
922 leakageDetectorRule.assertUnreleasedResourceCount(asc, 1); in test_closeGuardSupport_group()