Skip to content

Commit 5fb5f1b

Browse files
committed
Begin InlineExpectationsTest
1 parent 3ea167c commit 5fb5f1b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import java
2+
import semmle.code.java.dataflow.DataFlow
3+
import semmle.code.java.security.ArbitraryApkInstallationQuery
4+
import TestUtilities.InlineExpectationsTest
5+
6+
class HasApkInstallationTest extends InlineExpectationsTest {
7+
HasApkInstallationTest() { this = "HasApkInstallationTest" }
8+
9+
override string getARelevantTag() { result = "hasApkInstallation" }
10+
11+
override predicate hasActualResult(Location location, string element, string tag, string value) {
12+
tag = "hasApkInstallation" and
13+
exists(DataFlow::Node sink, ApkConfiguration conf | conf.hasFlowTo(sink) |
14+
sink.getLocation() = location and
15+
element = sink.toString() and
16+
value = ""
17+
)
18+
}
19+
}

0 commit comments

Comments
 (0)