Merge "Add connect-testing module to health/connect." into androidx-main
diff --git a/docs-tip-of-tree/build.gradle b/docs-tip-of-tree/build.gradle
index 2ce59c4..acd2153 100644
--- a/docs-tip-of-tree/build.gradle
+++ b/docs-tip-of-tree/build.gradle
@@ -189,6 +189,7 @@
     kmpDocs(project(":graphics:graphics-shapes"))
     docs(project(":gridlayout:gridlayout"))
     docs(project(":health:connect:connect-client"))
+    docs(project(":health:connect:connect-testing"))
     docs(project(":health:health-services-client"))
     docs(project(":heifwriter:heifwriter"))
     docs(project(":hilt:hilt-common"))
diff --git a/health/connect/OWNERS b/health/connect/OWNERS
new file mode 100644
index 0000000..ee53f1c
--- /dev/null
+++ b/health/connect/OWNERS
@@ -0,0 +1,7 @@
+# Bug component: 1126127
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
diff --git a/health/connect/connect-testing/api/current.txt b/health/connect/connect-testing/api/current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/health/connect/connect-testing/api/current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/health/connect/connect-testing/api/res-current.txt b/health/connect/connect-testing/api/res-current.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/health/connect/connect-testing/api/res-current.txt
diff --git a/health/connect/connect-testing/api/restricted_current.txt b/health/connect/connect-testing/api/restricted_current.txt
new file mode 100644
index 0000000..e6f50d0
--- /dev/null
+++ b/health/connect/connect-testing/api/restricted_current.txt
@@ -0,0 +1 @@
+// Signature format: 4.0
diff --git a/health/connect/connect-testing/build.gradle b/health/connect/connect-testing/build.gradle
new file mode 100644
index 0000000..3d2bacd
--- /dev/null
+++ b/health/connect/connect-testing/build.gradle
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ */
+
+/**
+ * This file was created using the `create_project.py` script located in the
+ * `<AndroidX root>/development/project-creator` directory.
+ *
+ * Please use that script when creating a new project, rather than copying an existing project and
+ * modifying its settings.
+ */
+import androidx.build.LibraryType
+
+plugins {
+    id("AndroidXPlugin")
+    id("com.android.library")
+    id("org.jetbrains.kotlin.android")
+}
+
+dependencies {
+    api(libs.kotlinStdlib)
+    // Add dependencies here
+}
+
+android {
+    namespace "androidx.health.connect.testing"
+}
+
+androidx {
+    name = "Health Connect Testing"
+    mavenVersion = LibraryVersions.HEALTH_CONNECT_TESTING_QUARANTINE
+    type = LibraryType.PUBLISHED_TEST_LIBRARY
+    inceptionYear = "2024"
+    description = "Test HealthConnect by providing a fake HealthConnectClient. This library should be added as a test dependency when writting unit tests that call HealthConnect APIs."
+}
diff --git a/health/connect/connect-testing/src/main/java/androidx/health/connect/androidx-health-connect-connect-testing-documentation.md b/health/connect/connect-testing/src/main/java/androidx/health/connect/androidx-health-connect-connect-testing-documentation.md
new file mode 100644
index 0000000..ab99573
--- /dev/null
+++ b/health/connect/connect-testing/src/main/java/androidx/health/connect/androidx-health-connect-connect-testing-documentation.md
@@ -0,0 +1,6 @@
+# Module root
+
+HealthConnect testing client
+
+# Package androidx.health.connect.testing
+
diff --git a/libraryversions.toml b/libraryversions.toml
index caa048c..ed73f4b 100644
--- a/libraryversions.toml
+++ b/libraryversions.toml
@@ -72,6 +72,7 @@
 GRAPHICS_SHAPES = "1.0.0-rc01"
 GRIDLAYOUT = "1.1.0-beta02"
 HEALTH_CONNECT = "1.1.0-alpha08"
+HEALTH_CONNECT_TESTING_QUARANTINE = "1.0.0-alpha01"
 HEALTH_SERVICES_CLIENT = "1.1.0-alpha03"
 HEIFWRITER = "1.1.0-alpha03"
 HILT = "1.2.0-rc01"
diff --git a/settings.gradle b/settings.gradle
index 2c98097..b4c34df 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -712,6 +712,7 @@
 includeProject(":health:connect:connect-client-proto", [BuildType.MAIN])
 includeProject(":health:connect:connect-client-external-protobuf", [BuildType.MAIN])
 includeProject(":health:connect:connect-client-samples", "health/connect/connect-client/samples", [BuildType.MAIN])
+includeProject(":health:connect:connect-testing", [BuildType.MAIN])
 includeProject(":health:health-services-client", [BuildType.MAIN])
 includeProject(":heifwriter:heifwriter", [BuildType.MAIN])
 includeProject(":hilt:hilt-common", [BuildType.MAIN])