Home | History | Annotate | Download | only in enc
      1 package(default_visibility = ["//visibility:public"])
      2 
      3 licenses(["notice"])  # MIT
      4 
      5 filegroup(
      6     name = "jni_src",
      7     srcs = ["encoder_jni.cc"],
      8 )
      9 
     10 #########################################
     11 # WARNING: do not depend on this target!
     12 #########################################
     13 java_library(
     14     name = "enc",
     15     srcs = glob(
     16         ["*.java"],
     17         exclude = ["*Test*.java"],
     18     ),
     19     deps = ["//:jni"],
     20 )
     21 
     22 filegroup(
     23     name = "test_bundle",
     24     srcs = ["//java/org/brotli/integration:test_corpus"],
     25 )
     26 
     27 java_test(
     28     name = "BrotliEncoderChannelTest",
     29     size = "large",
     30     srcs = ["BrotliEncoderChannelTest.java"],
     31     data = [
     32         ":test_bundle",
     33         "//:jni",  # Bazel JNI workaround
     34     ],
     35     jvm_flags = ["-DTEST_BUNDLE=$(location :test_bundle)"],
     36     shard_count = 15,
     37     deps = [
     38         ":enc",
     39         "//java/org/brotli/integration:bundle_helper",
     40         "//java/org/brotli/wrapper/dec",
     41         "@junit_junit//jar",
     42     ],
     43 )
     44 
     45 java_test(
     46     name = "BrotliOutputStreamTest",
     47     size = "large",
     48     srcs = ["BrotliOutputStreamTest.java"],
     49     data = [
     50         ":test_bundle",
     51         "//:jni",  # Bazel JNI workaround
     52     ],
     53     jvm_flags = ["-DTEST_BUNDLE=$(location :test_bundle)"],
     54     shard_count = 15,
     55     deps = [
     56         ":enc",
     57         "//java/org/brotli/integration:bundle_helper",
     58         "//java/org/brotli/wrapper/dec",
     59         "@junit_junit//jar",
     60     ],
     61 )
     62 
     63 java_test(
     64     name = "EncoderTest",
     65     size = "large",
     66     srcs = ["EncoderTest.java"],
     67     data = [
     68         ":test_bundle",
     69         "//:jni",  # Bazel JNI workaround
     70     ],
     71     jvm_flags = ["-DTEST_BUNDLE=$(location :test_bundle)"],
     72     shard_count = 15,
     73     deps = [
     74         ":enc",
     75         "//java/org/brotli/integration:bundle_helper",
     76         "//java/org/brotli/wrapper/dec",
     77         "@junit_junit//jar",
     78     ],
     79 )
     80