Skip to content

Commit 8cc2a73

Browse files
committed
Fix test to use new InlineFlowTest
1 parent 58bd2f7 commit 8cc2a73

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
import java
2-
import TestUtilities.InlineExpectationsTest
2+
import TestUtilities.InlineFlowTest
33
import semmle.code.java.security.WebviewDebuggingEnabledQuery
44

5-
class HasFlowTest extends InlineExpectationsTest {
6-
HasFlowTest() { this = "HasFlowTest" }
5+
class HasFlowTest extends InlineFlowTest {
6+
override predicate hasTaintFlow(DataFlow::Node src, DataFlow::Node sink) { none() }
77

8-
override string getARelevantTag() { result = "hasValueFlow" }
9-
10-
override predicate hasActualResult(Location location, string element, string tag, string value) {
11-
tag = "hasValueFlow" and
12-
exists(DataFlow::Node sink | WebviewDebugEnabledFlow::hasFlowTo(sink) |
13-
location = sink.getLocation() and
14-
element = "sink" and
15-
value = ""
16-
)
8+
override predicate hasValueFlow(DataFlow::Node src, DataFlow::Node sink) {
9+
WebviewDebugEnabledFlow::hasFlow(src, sink)
1710
}
1811
}

0 commit comments

Comments
 (0)