diff options
author | Elton Kola <eltonkola@gmail.com> | 2024-05-25 04:11:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 11:11:33 +0300 |
commit | 9791f402580838d7f8543ae7bc633ef265e436f0 (patch) | |
tree | 861c68d5eaec71f119f688c7975948f06b73ffb7 /examples/llama.android/llama/src/androidTest | |
parent | 902184dd3a9d6685e752b19027a48423742531db (diff) |
android : module (#7502)
* move ndk code to a new library
* add gradle file
Diffstat (limited to 'examples/llama.android/llama/src/androidTest')
-rw-r--r-- | examples/llama.android/llama/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/llama.android/llama/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt b/examples/llama.android/llama/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt new file mode 100644 index 00000000..05d6ab5d --- /dev/null +++ b/examples/llama.android/llama/src/androidTest/java/android/llama/cpp/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package android.llama.cpp + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("android.llama.cpp.test", appContext.packageName) + } +} |