aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-an Chen <theianchen@google.com>2024-04-05 18:26:02 +0000
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-04-05 21:11:43 +0000
commitf9ee2471cecc1c48741db4cd2108252ee10eef28 (patch)
treed7d1db77cbbdea916c133f22747656fc5c3db83a
parent675f1e99d18e9aeddd05e4077c3f5ed4722b103c (diff)
downloadtradefederation-f9ee2471cecc1c48741db4cd2108252ee10eef28.tar.gz
Add Sdk35ModuleController
Bug: 331273067 Test: presubmit Change-Id: I079c7f18a8f62bee5e6494abd5c88703862176d3
-rw-r--r--src/com/android/tradefed/testtype/suite/module/Sdk35ModuleController.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/com/android/tradefed/testtype/suite/module/Sdk35ModuleController.java b/src/com/android/tradefed/testtype/suite/module/Sdk35ModuleController.java
new file mode 100644
index 000000000..ee637450f
--- /dev/null
+++ b/src/com/android/tradefed/testtype/suite/module/Sdk35ModuleController.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2024 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.
+ */
+package com.android.tradefed.testtype.suite.module;
+
+/**
+ * Only run tests if the device under test is SDK version 35 or above.
+ *
+ * <p>Use by adding this line to your AndroidTest.xml: <object type="module_controller"
+ * class="com.android.tradefed.testtype.suite.module.Sdk35ModuleController" />
+ */
+public class Sdk35ModuleController extends MinSdkModuleController {
+ public Sdk35ModuleController() {
+ super(35);
+ }
+}