Skip to content

Commit

Permalink
Fix SigquitJniInterfaceTest (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
priettt authored Sep 12, 2024
1 parent 1f10dfd commit b000978
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions embrace-android-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ dependencies {
testImplementation(libs.protobuf.java)
testImplementation(libs.protobuf.java.util)
testImplementation(libs.kotlin.reflect)

androidTestImplementation(project(":embrace-test-fakes"))
}

project.tasks.register("publishLocal") { dependsOn("publishMavenPublicationToMavenLocal") }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.embrace.android.embracesdk.ndk.jni

import io.embrace.android.embracesdk.fakes.FakeSigquitDataSource
import io.embrace.android.embracesdk.internal.anr.sigquit.EmbraceSigquitNdkDelegate
import io.embrace.android.embracesdk.ndk.NativeTestSuite
import org.junit.Assert.assertEquals
Expand All @@ -16,7 +17,8 @@ internal class SigquitJniInterfaceTest : NativeTestSuite() {
*/
@Test
fun installGoogleAnrHandlerTest() {
val result = sigquitNdkDelegate.installGoogleAnrHandler(1)
val fakeSigquitDataSource = FakeSigquitDataSource()
val result = sigquitNdkDelegate.installGoogleAnrHandler(1, fakeSigquitDataSource)
assertEquals(0, result)
}
}

0 comments on commit b000978

Please sign in to comment.