Merge "Add shared jarjar rule for tethering tests"
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
|
||||
"libnetworkstackutilsjni",
|
||||
],
|
||||
jarjar_rules: ":TetheringTestsJarJarRules",
|
||||
compile_multilib: "both",
|
||||
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
|
||||
|
||||
# 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.
|
||||
# TestableLooper from "testables" can be used instead of TestLooper from frameworks-base-testutils.
|
||||
zap android.os.test.TestLooperTest*
|
||||
zap com.android.test.filters.SelectTestTests*
|
||||
zap com.android.test.filters.SelectTestTests*
|
||||
@@ -67,7 +67,6 @@ java_defaults {
|
||||
"libdexmakerjvmtiagent",
|
||||
"libstaticjvmtiagent",
|
||||
],
|
||||
jarjar_rules: "jarjar-rules.txt",
|
||||
}
|
||||
|
||||
// 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",
|
||||
"mts",
|
||||
],
|
||||
jarjar_rules: ":TetheringTestsJarJarRules",
|
||||
defaults: ["TetheringTestsDefaults"],
|
||||
compile_multilib: "both",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user