-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move HandleManagerTestBase and tests under integration/ package (both…
… core/ and android/) PiperOrigin-RevId: 347919703
- Loading branch information
Showing
16 changed files
with
144 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
javatests/arcs/android/entity/integration/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
~ Copyright 2020 Google LLC. | ||
~ | ||
~ This code may only be used under the BSD style license found at | ||
~ http://polymer.github.io/LICENSE.txt | ||
~ | ||
~ Code distributed by Google as part of this project is also subject to an additional IP rights | ||
~ grant found at | ||
~ http://polymer.github.io/PATENTS.txt | ||
--> | ||
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="arcs.android.entity.integration"> | ||
|
||
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="28"/> | ||
|
||
<application> | ||
<service android:name="arcs.sdk.android.storage.service.StorageService" android:exported="false"/> | ||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
load( | ||
"//third_party/java/arcs/build_defs:build_defs.bzl", | ||
"arcs_kt_android_test_suite", | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
arcs_kt_android_test_suite( | ||
name = "integration", | ||
size = "medium", | ||
srcs = glob(["*.kt"]), | ||
manifest = "AndroidManifest.xml", | ||
package = "arcs.android.entity.integration", | ||
deps = [ | ||
"//java/arcs/android/storage/database", | ||
"//java/arcs/core/host", | ||
"//java/arcs/core/storage", | ||
"//java/arcs/core/storage/driver:driver_providers", | ||
"//java/arcs/core/testutil", | ||
"//java/arcs/sdk/android/storage", | ||
"//java/arcs/sdk/android/storage/service", | ||
"//java/arcs/sdk/android/storage/service/testutil", | ||
"//javatests/arcs/core/entity/integration:lib", | ||
"//third_party/android/androidx_test/core", | ||
"//third_party/android/androidx_test/ext/junit", | ||
"//third_party/java/androidx/work:testing", | ||
"//third_party/java/junit:junit-android", | ||
"//third_party/java/truth:truth-android", | ||
"//third_party/kotlin/kotlinx_coroutines", | ||
], | ||
) |
4 changes: 2 additions & 2 deletions
4
...roid/entity/DifferentHandleManagerTest.kt → ...integration/DifferentHandleManagerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s/android/entity/SameHandleManagerTest.kt → ...tity/integration/SameHandleManagerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
load( | ||
"//third_party/java/arcs/build_defs:build_defs.bzl", | ||
"arcs_kt_jvm_library", | ||
"arcs_kt_jvm_test_suite", | ||
"arcs_kt_schema", | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
TEST_SRCS = glob(["*Test.kt"]) | ||
|
||
arcs_kt_schema( | ||
name = "test_arcs_gen", | ||
srcs = ["test.arcs"], | ||
) | ||
|
||
arcs_kt_jvm_test_suite( | ||
name = "integration", | ||
size = "medium", | ||
srcs = TEST_SRCS, | ||
package = "arcs.core.entity.integration", | ||
deps = [ | ||
":lib", | ||
"//java/arcs/core/host", | ||
"//java/arcs/core/storage/testutil", | ||
"//third_party/java/junit:junit-android", | ||
"//third_party/java/mockito", | ||
"//third_party/kotlin/kotlin:kotlin_test", | ||
"//third_party/kotlin/mockito_kotlin", | ||
], | ||
) | ||
|
||
arcs_kt_jvm_library( | ||
name = "lib", | ||
testonly = 1, | ||
srcs = glob( | ||
["*.kt"], | ||
exclude = TEST_SRCS, | ||
), | ||
visibility = ["//javatests/arcs:__subpackages__"], | ||
deps = [ | ||
":test_arcs_gen", | ||
"//java/arcs/core/data", | ||
"//java/arcs/core/entity", | ||
"//java/arcs/core/host", | ||
"//java/arcs/core/storage", | ||
"//java/arcs/core/storage/api", | ||
"//java/arcs/core/storage/driver:ramdisk", | ||
"//java/arcs/core/storage/driver/testutil", | ||
"//java/arcs/core/storage/keys", | ||
"//java/arcs/core/storage/referencemode", | ||
"//java/arcs/core/testutil", | ||
"//java/arcs/core/testutil/handles", | ||
"//java/arcs/core/util:utils-platform-dependencies", | ||
"//java/arcs/core/util/testutil", | ||
"//java/arcs/flags/testing", | ||
"//java/arcs/jvm/util/testutil", | ||
"//third_party/java/junit:junit-android", | ||
"//third_party/java/truth:truth-android", | ||
"//third_party/kotlin/kotlin:kotlin_test", | ||
"//third_party/kotlin/kotlinx_coroutines", | ||
], | ||
) |
2 changes: 1 addition & 1 deletion
2
...ferentHandleManagerDifferentStoresTest.kt → ...ferentHandleManagerDifferentStoresTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...core/entity/DifferentHandleManagerTest.kt → ...integration/DifferentHandleManagerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...arcs/core/entity/SameHandleManagerTest.kt → ...tity/integration/SameHandleManagerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
javatests/arcs/core/entity/test.arcs → ...ts/arcs/core/entity/integration/test.arcs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
meta | ||
namespace: arcs.core.entity | ||
namespace: arcs.core.entity.integration | ||
|
||
schema Package | ||
|
||
|