1. All ConnectivityManagerApi23Test were failed due to
WifiManager#setWifiEnabled doesn't allow to use since
Android Q. So we need to use shell command to enable/disable
Wi-Fi instead.
2. Some methods are duplicated between
ConnectivityManagerApi23Test and ConnectivityManagerTest, but
they are not identical. So put these methods into
ConnectivityUtils to clean up duplications and prevent fork
happened again.
Bug: 133334943
Bug: 133209319
Test: Run the below tests on Crosshatch, Sailfish, Bonito.
atest CtsNetApi23TestCases
atest CtsNetTestCases
Change-Id: Ic37111cb12a46f5c36c2be887250c5d762216f6e
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
// Copyright (C) 2019 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.
|
|
|
|
android_test {
|
|
name: "CtsNetApi23TestCases",
|
|
defaults: ["cts_defaults"],
|
|
|
|
// Include both the 32 and 64 bit versions
|
|
compile_multilib: "both",
|
|
|
|
libs: [
|
|
"android.test.base.stubs",
|
|
],
|
|
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
|
|
static_libs: [
|
|
"core-tests-support",
|
|
"compatibility-device-util-axt",
|
|
"cts-net-utils",
|
|
"ctstestrunner-axt",
|
|
"ctstestserver",
|
|
"mockwebserver",
|
|
"junit",
|
|
"junit-params",
|
|
"truth-prebuilt",
|
|
],
|
|
|
|
platform_apis: true,
|
|
|
|
// Tag this module as a cts test artifact
|
|
test_suites: [
|
|
"cts",
|
|
"vts",
|
|
"general-tests",
|
|
],
|
|
|
|
}
|