summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2024-08-13 13:21:01 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-08-13 13:21:01 +0000
commit36a96a45701b2c893b816b59a9cc38aabd791b6d (patch)
tree52a876cb3c61665b4888cca32f0aab563dcb05ef
parent6555e7de7ae5f05aa6b3ec6114d7dcb5cebe42cf (diff)
parent338790f0261d9452f20565352a7fe8afc35a3b81 (diff)
Merge "Add Kosmos provider for ImageLoader" into main
-rw-r--r--packages/SystemUI/tests/utils/src/com/android/systemui/graphics/ImageLoaderKosmos.kt23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/SystemUI/tests/utils/src/com/android/systemui/graphics/ImageLoaderKosmos.kt b/packages/SystemUI/tests/utils/src/com/android/systemui/graphics/ImageLoaderKosmos.kt
new file mode 100644
index 000000000000..6b8919dd86fe
--- /dev/null
+++ b/packages/SystemUI/tests/utils/src/com/android/systemui/graphics/ImageLoaderKosmos.kt
@@ -0,0 +1,23 @@
+/*
+ * 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.systemui.graphics
+
+import android.content.testableContext
+import com.android.systemui.kosmos.Kosmos
+import com.android.systemui.kosmos.testDispatcher
+
+var Kosmos.imageLoader by Kosmos.Fixture { ImageLoader(testableContext, testDispatcher) }