Remi NGUYEN VAN | 31022d6 | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2019 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | package { |
| 18 | // See: http://go/android-license-faq |
Baligh Uddin | 3684713 | 2021-05-23 16:38:40 +0000 | [diff] [blame] | 19 | default_applicable_licenses: ["Android-Apache-2.0"], |
Remi NGUYEN VAN | 31022d6 | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 20 | } |
| 21 | |
Aaron Huang | 1ed8aff | 2021-09-28 15:37:49 +0800 | [diff] [blame] | 22 | // FrameworksNetDeflakeTest depends on FrameworksNetTests so it should be disabled |
| 23 | // if FrameworksNetTests is disabled. |
| 24 | enable_frameworks_net_deflake_test = true |
| 25 | // Placeholder |
| 26 | // This is a placeholder comment to minimize merge conflicts, as enable_frameworks_net_deflake_test |
| 27 | // may have different values depending on the branch |
| 28 | // Placeholder |
| 29 | |
Remi NGUYEN VAN | 31022d6 | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 30 | java_test_host { |
| 31 | name: "FrameworksNetDeflakeTest", |
Aaron Huang | 1ed8aff | 2021-09-28 15:37:49 +0800 | [diff] [blame] | 32 | enabled: enable_frameworks_net_deflake_test, |
Remi NGUYEN VAN | 31022d6 | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 33 | srcs: ["src/**/*.kt"], |
| 34 | libs: [ |
| 35 | "junit", |
| 36 | "tradefed", |
| 37 | ], |
| 38 | static_libs: [ |
| 39 | "kotlin-test", |
| 40 | "net-host-tests-utils", |
| 41 | ], |
| 42 | data: [":FrameworksNetTests"], |
| 43 | test_suites: ["device-tests"], |
Aaron Huang | 1ed8aff | 2021-09-28 15:37:49 +0800 | [diff] [blame] | 44 | // It will get build error if just set enabled to true. It fails with "windows_common" |
| 45 | // depends on some disabled modules that are used by this test and it looks like set |
| 46 | // enable_frameworks_net_deflake_test to true also enables "windows" variant. Thus, |
| 47 | // disable this on target windows. |
| 48 | // TODO: Remove this when b/201754360 is fixed. |
| 49 | target: { |
| 50 | windows: { |
| 51 | enabled: false, |
| 52 | }, |
| 53 | }, |
Remi NGUYEN VAN | 31022d6 | 2021-05-11 13:37:06 +0000 | [diff] [blame] | 54 | } |