blob: 4eee8c32ed0a21f2779aad17784fb672239fba9b [file] [log] [blame]
load("//src/main/java/com/google/android/libraries/feed/buildtools/testing:android_local_test.bzl", "DEFAULT_ANDROID_LOCAL_TEST_MANIFEST")
licenses(["notice"]) # Apache 2
android_local_test(
name = "CardDriverTest",
size = "small",
timeout = "moderate",
srcs = ["CardDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/client/stream",
"//src/main/java/com/google/android/libraries/feed/api/host/action",
"//src/main/java/com/google/android/libraries/feed/api/host/config",
"//src/main/java/com/google/android/libraries/feed/api/host/logging",
"//src/main/java/com/google/android/libraries/feed/api/host/stream",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionmanager",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionparser",
"//src/main/java/com/google/android/libraries/feed/api/internal/modelprovider",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/pendingdismiss",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewloggingupdater",
"//src/main/java/com/google/android/libraries/feed/common/concurrent/testing",
"//src/main/java/com/google/android/libraries/feed/sharedstream/contextmenumanager",
"//src/main/java/com/google/android/libraries/feed/sharedstream/offlinemonitor",
"//src/main/java/com/google/android/libraries/feed/sharedstream/publicapi/menumeasurer",
"//src/main/java/com/google/android/libraries/feed/testing/modelprovider",
"//src/main/proto/com/google/android/libraries/feed/api/internal/proto:client_feed_java_proto_lite",
"//src/main/proto/search/now/ui/action:feed_action_java_proto_lite",
"//src/main/proto/search/now/ui/action:feed_action_payload_java_proto_lite",
"//src/main/proto/search/now/ui/stream:stream_java_proto_lite",
"//src/main/proto/search/now/ui/stream:stream_swipe_extension_java_proto_lite",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_guava_guava",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "ClusterDriverTest",
size = "small",
timeout = "moderate",
srcs = ["ClusterDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/client/stream",
"//src/main/java/com/google/android/libraries/feed/api/host/action",
"//src/main/java/com/google/android/libraries/feed/api/host/config",
"//src/main/java/com/google/android/libraries/feed/api/host/logging",
"//src/main/java/com/google/android/libraries/feed/api/host/stream",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionmanager",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionparser",
"//src/main/java/com/google/android/libraries/feed/api/internal/modelprovider",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/pendingdismiss",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewloggingupdater",
"//src/main/java/com/google/android/libraries/feed/common/concurrent/testing",
"//src/main/java/com/google/android/libraries/feed/sharedstream/contextmenumanager",
"//src/main/java/com/google/android/libraries/feed/sharedstream/offlinemonitor",
"//src/main/java/com/google/android/libraries/feed/sharedstream/pendingdismiss",
"//src/main/java/com/google/android/libraries/feed/sharedstream/publicapi/menumeasurer",
"//src/main/java/com/google/android/libraries/feed/testing/modelprovider",
"//src/main/proto/com/google/android/libraries/feed/api/internal/proto:client_feed_java_proto_lite",
"//src/main/proto/search/now/ui/action:feed_action_java_proto_lite",
"//src/main/proto/search/now/ui/stream:stream_java_proto_lite",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_guava_guava",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "ContentDriverTest",
size = "small",
timeout = "moderate",
srcs = ["ContentDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/client/knowncontent",
"//src/main/java/com/google/android/libraries/feed/api/client/stream",
"//src/main/java/com/google/android/libraries/feed/api/host/action",
"//src/main/java/com/google/android/libraries/feed/api/host/config",
"//src/main/java/com/google/android/libraries/feed/api/host/logging",
"//src/main/java/com/google/android/libraries/feed/api/host/stream",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionmanager",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionparser",
"//src/main/java/com/google/android/libraries/feed/api/internal/modelprovider",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/actions",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/pendingdismiss",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewholders",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewloggingupdater",
"//src/main/java/com/google/android/libraries/feed/common/concurrent/testing",
"//src/main/java/com/google/android/libraries/feed/common/functional",
"//src/main/java/com/google/android/libraries/feed/common/time/testing",
"//src/main/java/com/google/android/libraries/feed/sharedstream/contextmenumanager",
"//src/main/java/com/google/android/libraries/feed/sharedstream/logging",
"//src/main/java/com/google/android/libraries/feed/sharedstream/publicapi/menumeasurer",
"//src/main/java/com/google/android/libraries/feed/testing/sharedstream/offlinemonitor",
"//src/main/proto/com/google/android/libraries/feed/api/internal/proto:client_feed_java_proto_lite",
"//src/main/proto/search/now/ui/action:feed_action_java_proto_lite",
"//src/main/proto/search/now/ui/action:feed_action_payload_java_proto_lite",
"//src/main/proto/search/now/ui/piet:piet_java_proto_lite",
"//src/main/proto/search/now/ui/stream:stream_java_proto_lite",
"//src/main/proto/search/now/wire/feed:feed_java_proto_lite",
"//third_party:robolectric",
"@com_google_code_findbugs_jsr305//jar",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_android_support_recyclerview_v7",
"@maven//:com_google_guava_guava",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "ContinuationDriverTest",
size = "small",
timeout = "moderate",
srcs = ["ContinuationDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/host/config",
"//src/main/java/com/google/android/libraries/feed/api/host/logging",
"//src/main/java/com/google/android/libraries/feed/api/host/stream",
"//src/main/java/com/google/android/libraries/feed/api/internal/common",
"//src/main/java/com/google/android/libraries/feed/api/internal/modelprovider",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewholders",
"//src/main/java/com/google/android/libraries/feed/common/testing",
"//src/main/java/com/google/android/libraries/feed/common/time",
"//src/main/java/com/google/android/libraries/feed/common/time/testing",
"//src/main/java/com/google/android/libraries/feed/sharedstream/logging",
"//src/main/java/com/google/android/libraries/feed/testing/modelprovider",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_guava_guava",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "HeaderDriverTest",
size = "small",
timeout = "moderate",
srcs = ["HeaderDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/client/stream",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewholders",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "NoContentDriverTest",
size = "small",
timeout = "moderate",
srcs = ["NoContentDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewholders",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "StreamDriverTest",
size = "small",
timeout = "moderate",
srcs = ["StreamDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/client/stream",
"//src/main/java/com/google/android/libraries/feed/api/host/action",
"//src/main/java/com/google/android/libraries/feed/api/host/config",
"//src/main/java/com/google/android/libraries/feed/api/host/logging",
"//src/main/java/com/google/android/libraries/feed/api/host/stream",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionmanager",
"//src/main/java/com/google/android/libraries/feed/api/internal/actionparser",
"//src/main/java/com/google/android/libraries/feed/api/internal/common",
"//src/main/java/com/google/android/libraries/feed/api/internal/knowncontent",
"//src/main/java/com/google/android/libraries/feed/api/internal/modelprovider",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers/testing:fake_feature_driver",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers/testing:fake_leaf_feature_driver",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/scroll",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewloggingupdater",
"//src/main/java/com/google/android/libraries/feed/common/concurrent/testing",
"//src/main/java/com/google/android/libraries/feed/common/testing",
"//src/main/java/com/google/android/libraries/feed/common/time",
"//src/main/java/com/google/android/libraries/feed/common/time/testing",
"//src/main/java/com/google/android/libraries/feed/sharedstream/contextmenumanager",
"//src/main/java/com/google/android/libraries/feed/sharedstream/offlinemonitor",
"//src/main/java/com/google/android/libraries/feed/sharedstream/pendingdismiss",
"//src/main/java/com/google/android/libraries/feed/sharedstream/removetrackingfactory",
"//src/main/java/com/google/android/libraries/feed/sharedstream/ui",
"//src/main/java/com/google/android/libraries/feed/testing/modelprovider",
"//src/main/proto/com/google/android/libraries/feed/api/internal/proto:client_feed_java_proto_lite",
"//src/main/proto/com/google/android/libraries/feed/sharedstream/proto:ui_refresh_reason_java_proto_lite",
"//src/main/proto/search/now/ui/action:feed_action_java_proto_lite",
"//src/main/proto/search/now/ui/stream:stream_java_proto_lite",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_guava_guava",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)
android_local_test(
name = "ZeroStateDriverTest",
size = "small",
timeout = "moderate",
srcs = ["ZeroStateDriverTest.java"],
aapt_version = "aapt2",
manifest_values = DEFAULT_ANDROID_LOCAL_TEST_MANIFEST,
deps = [
"//src/main/java/com/google/android/libraries/feed/api/client/stream",
"//src/main/java/com/google/android/libraries/feed/api/host/logging",
"//src/main/java/com/google/android/libraries/feed/api/internal/modelprovider",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/drivers",
"//src/main/java/com/google/android/libraries/feed/basicstream/internal/viewholders",
"//src/main/java/com/google/android/libraries/feed/common/testing",
"//src/main/java/com/google/android/libraries/feed/common/time",
"//src/main/java/com/google/android/libraries/feed/common/time/testing",
"//src/main/java/com/google/android/libraries/feed/sharedstream/logging",
"//src/main/proto/com/google/android/libraries/feed/api/internal/proto:client_feed_java_proto_lite",
"//src/main/proto/com/google/android/libraries/feed/sharedstream/proto:ui_refresh_reason_java_proto_lite",
"//third_party:robolectric",
"@com_google_protobuf_javalite//:protobuf_java_lite",
"@maven//:com_google_truth_truth",
"@maven//:org_mockito_mockito_core",
"@robolectric//bazel:android-all",
],
)