Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3e4ecfc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix IntentFilterVerificationTest"

parents 8e12eec6 375a1174
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -77,12 +77,14 @@ class VerifyReceiverTest {
        val filter = IntentFilter().apply {
            addAction(Intent.ACTION_VIEW)
            addCategory(Intent.CATEGORY_DEFAULT)
            addCategory(Intent.CATEGORY_BROWSABLE)
            addDataScheme(uri.scheme)
            addDataAuthority(uri.authority, null)
        }

        val intent = Intent(Intent.ACTION_VIEW, uri).apply {
            addCategory(Intent.CATEGORY_DEFAULT)
            addCategory(Intent.CATEGORY_BROWSABLE)
        }
        val allResults = context.packageManager.queryIntentActivities(intent, 0)
        val allComponents = allResults
@@ -132,6 +134,8 @@ class VerifyReceiverTest {
        val intent = Intent(Intent.ACTION_VIEW).apply {
            data = uri
            addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
            addCategory(Intent.CATEGORY_DEFAULT)
            addCategory(Intent.CATEGORY_BROWSABLE)
        }

        val expectedActivities = params.expected.toMutableList()