summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAoJ Architecture Team <aoj-architecture-team@google.com>2023-11-08 06:10:17 -0800
committerCopybara-Service <copybara-worker@google.com>2023-11-08 06:13:30 -0800
commitdf5ca29fcdd0450d2585867a269cbc6ea6ebefb9 (patch)
tree9603533ef96e3f4ad64808100953a652e02b9511
parent098ca57a27894ac2f1c929c88b5a0107574c9b33 (diff)
downloadandroid_onboarding-df5ca29fcdd0450d2585867a269cbc6ea6ebefb9.tar.gz
Copybara ❤️: Add test sizes to correctly timeout onboarding tests
CL: cl/580509534 PiperOrigin-RevId: 580509534 Change-Id: I855a9c9f315840ae28e23d5a46e24ce29402e344
-rw-r--r--src/com/android/onboarding/contracts/annotations/OnboardingNode.kt21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/com/android/onboarding/contracts/annotations/OnboardingNode.kt b/src/com/android/onboarding/contracts/annotations/OnboardingNode.kt
index 3ea43f6..17c9645 100644
--- a/src/com/android/onboarding/contracts/annotations/OnboardingNode.kt
+++ b/src/com/android/onboarding/contracts/annotations/OnboardingNode.kt
@@ -14,13 +14,32 @@ annotation class OnboardingNode(
val name: String,
/** True if this is a node which presents a UI to the user. */
- val hasUi: HasUi
+ val hasUi: HasUi,
+
+ /** The type of specification given for this node. */
+ val specificationType: SpecificationType = SpecificationType.LIGHT
) {
enum class HasUi {
NO,
YES,
YES_TEMPORARILY
}
+
+ enum class SpecificationType {
+ /**
+ * This means that full Javadoc is provided, all arguments are fully defined, documented and
+ * typed (no undefined Bundles or Intents), and return values are properly defined and typed.
+ */
+ V1,
+
+ /**
+ * No requirements.
+ *
+ * Most "Light" nodes will be lacking Javadoc, and using Intents and Bundles as arguments and
+ * return values.
+ */
+ LIGHT
+ }
}
const val MAX_NODE_NAME_LENGTH: Int = 40