Merge "Add shared jarjar rule for tethering tests" am: d75774dfe0 am: 2dc283eeca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1473223 Change-Id: I34c41fbbe5f034a2ed332c784ab0decb2c6b2add
This commit is contained in:
23
Tethering/tests/Android.bp
Normal file
23
Tethering/tests/Android.bp
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// 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.
|
||||||
|
//
|
||||||
|
|
||||||
|
filegroup {
|
||||||
|
name: "TetheringTestsJarJarRules",
|
||||||
|
srcs: ["jarjar-rules.txt"],
|
||||||
|
visibility: [
|
||||||
|
"//frameworks/base/packages/Tethering/tests:__subpackages__",
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -79,6 +79,7 @@ android_test {
|
|||||||
// For NetworkStackUtils included in NetworkStackBase
|
// For NetworkStackUtils included in NetworkStackBase
|
||||||
"libnetworkstackutilsjni",
|
"libnetworkstackutilsjni",
|
||||||
],
|
],
|
||||||
|
jarjar_rules: ":TetheringTestsJarJarRules",
|
||||||
compile_multilib: "both",
|
compile_multilib: "both",
|
||||||
manifest: "AndroidManifest_coverage.xml",
|
manifest: "AndroidManifest_coverage.xml",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,10 @@ rule com.android.internal.util.TrafficStatsConstants* com.android.networkstack.t
|
|||||||
|
|
||||||
rule android.util.LocalLog* com.android.networkstack.tethering.util.LocalLog@1
|
rule android.util.LocalLog* com.android.networkstack.tethering.util.LocalLog@1
|
||||||
|
|
||||||
|
# Classes from net-utils-framework-common
|
||||||
|
rule com.android.net.module.util.** com.android.networkstack.tethering.util.@1
|
||||||
|
|
||||||
# TODO: either stop using frameworks-base-testutils or remove the unit test classes it contains.
|
# TODO: either stop using frameworks-base-testutils or remove the unit test classes it contains.
|
||||||
# TestableLooper from "testables" can be used instead of TestLooper from frameworks-base-testutils.
|
# TestableLooper from "testables" can be used instead of TestLooper from frameworks-base-testutils.
|
||||||
zap android.os.test.TestLooperTest*
|
zap android.os.test.TestLooperTest*
|
||||||
zap com.android.test.filters.SelectTestTests*
|
zap com.android.test.filters.SelectTestTests*
|
||||||
@@ -67,7 +67,6 @@ java_defaults {
|
|||||||
"libdexmakerjvmtiagent",
|
"libdexmakerjvmtiagent",
|
||||||
"libstaticjvmtiagent",
|
"libstaticjvmtiagent",
|
||||||
],
|
],
|
||||||
jarjar_rules: "jarjar-rules.txt",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Library containing the unit tests. This is used by the coverage test target to pull in the
|
// Library containing the unit tests. This is used by the coverage test target to pull in the
|
||||||
@@ -88,6 +87,7 @@ android_test {
|
|||||||
"device-tests",
|
"device-tests",
|
||||||
"mts",
|
"mts",
|
||||||
],
|
],
|
||||||
|
jarjar_rules: ":TetheringTestsJarJarRules",
|
||||||
defaults: ["TetheringTestsDefaults"],
|
defaults: ["TetheringTestsDefaults"],
|
||||||
compile_multilib: "both",
|
compile_multilib: "both",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user