aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHadrien Zalek <hzalek@google.com>2020-06-01 18:35:37 -0700
committerHadrien Zalek <hzalek@google.com>2020-06-03 00:22:23 -0700
commit58f48cc424a4db0eb99fd891986573023ae23d9f (patch)
treecfc59749e3f32a6158ac17ed8a8626bc5c219363
parent2d04a324870582b87e05dbffbe9fe0d77dab1cf1 (diff)
downloadgrpc-grpc-java-58f48cc424a4db0eb99fd891986573023ae23d9f.tar.gz
Build the gRPC Java testing library
Add a build module for the testing library which provides utilities for more convenient unit testing of gRPC servers and clients. Test: m grpc-java-testing Bug: 148404241 Change-Id: I7f9894d0fb05c07b816aeae029a4293f194c9064
-rw-r--r--testing/Android.bp37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/Android.bp b/testing/Android.bp
new file mode 100644
index 000000000..f4c26615a
--- /dev/null
+++ b/testing/Android.bp
@@ -0,0 +1,37 @@
+// Copyright (C) 2020 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+//
+
+java_library_host {
+ name: "grpc-java-testing",
+ srcs: [
+ "src/main/java/io/grpc/testing/*.java",
+ ],
+ java_resource_dirs: [
+ "src/main/resources",
+ ],
+ libs: [
+ "grpc-java-context",
+ "grpc-java-core",
+ "grpc-java-core-inprocess",
+ "grpc-java-core-internal", // Not sure why this has to be here.
+ "grpc-java-core-util",
+ "grpc-java-stub",
+ "jsr305",
+ "guava",
+ "truth-prebuilt",
+ "junit",
+ ],
+}