Rename TestingTileProviderClient -> TestTileProviderClient.
Bug: 191985683
Relnote: "Rename TestingTileProviderClient -> TestTileProviderClient."
Test: Pure refactor; existing tests pass.
Change-Id: I198b414c24a7a593b2b0ac931976c8e481c35686
diff --git a/wear/tiles/tiles-testing/api/current.txt b/wear/tiles/tiles-testing/api/current.txt
index e53d376..ffd0e9f 100644
--- a/wear/tiles/tiles-testing/api/current.txt
+++ b/wear/tiles/tiles-testing/api/current.txt
@@ -1,9 +1,9 @@
// Signature format: 4.0
package androidx.wear.tiles.testing {
- public final class TestingTileProviderClient<T extends androidx.wear.tiles.TileProviderService> implements androidx.wear.tiles.client.TileProviderClient {
- ctor public TestingTileProviderClient(T service, kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.CoroutineDispatcher coroutineDispatcher);
- ctor public TestingTileProviderClient(T service, java.util.concurrent.Executor executor);
+ public final class TestTileProviderClient<T extends androidx.wear.tiles.TileProviderService> implements androidx.wear.tiles.client.TileProviderClient {
+ ctor public TestTileProviderClient(T service, kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.CoroutineDispatcher coroutineDispatcher);
+ ctor public TestTileProviderClient(T service, java.util.concurrent.Executor executor);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Integer> getApiVersion();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> onTileAdded();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> onTileEnter();
diff --git a/wear/tiles/tiles-testing/api/public_plus_experimental_current.txt b/wear/tiles/tiles-testing/api/public_plus_experimental_current.txt
index e53d376..ffd0e9f 100644
--- a/wear/tiles/tiles-testing/api/public_plus_experimental_current.txt
+++ b/wear/tiles/tiles-testing/api/public_plus_experimental_current.txt
@@ -1,9 +1,9 @@
// Signature format: 4.0
package androidx.wear.tiles.testing {
- public final class TestingTileProviderClient<T extends androidx.wear.tiles.TileProviderService> implements androidx.wear.tiles.client.TileProviderClient {
- ctor public TestingTileProviderClient(T service, kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.CoroutineDispatcher coroutineDispatcher);
- ctor public TestingTileProviderClient(T service, java.util.concurrent.Executor executor);
+ public final class TestTileProviderClient<T extends androidx.wear.tiles.TileProviderService> implements androidx.wear.tiles.client.TileProviderClient {
+ ctor public TestTileProviderClient(T service, kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.CoroutineDispatcher coroutineDispatcher);
+ ctor public TestTileProviderClient(T service, java.util.concurrent.Executor executor);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Integer> getApiVersion();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> onTileAdded();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> onTileEnter();
diff --git a/wear/tiles/tiles-testing/api/restricted_current.txt b/wear/tiles/tiles-testing/api/restricted_current.txt
index e53d376..ffd0e9f 100644
--- a/wear/tiles/tiles-testing/api/restricted_current.txt
+++ b/wear/tiles/tiles-testing/api/restricted_current.txt
@@ -1,9 +1,9 @@
// Signature format: 4.0
package androidx.wear.tiles.testing {
- public final class TestingTileProviderClient<T extends androidx.wear.tiles.TileProviderService> implements androidx.wear.tiles.client.TileProviderClient {
- ctor public TestingTileProviderClient(T service, kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.CoroutineDispatcher coroutineDispatcher);
- ctor public TestingTileProviderClient(T service, java.util.concurrent.Executor executor);
+ public final class TestTileProviderClient<T extends androidx.wear.tiles.TileProviderService> implements androidx.wear.tiles.client.TileProviderClient {
+ ctor public TestTileProviderClient(T service, kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.CoroutineDispatcher coroutineDispatcher);
+ ctor public TestTileProviderClient(T service, java.util.concurrent.Executor executor);
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Integer> getApiVersion();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> onTileAdded();
method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void> onTileEnter();
diff --git a/wear/tiles/tiles-testing/src/main/java/androidx/wear/tiles/testing/TestingTileProviderClient.kt b/wear/tiles/tiles-testing/src/main/java/androidx/wear/tiles/testing/TestTileProviderClient.kt
similarity index 95%
rename from wear/tiles/tiles-testing/src/main/java/androidx/wear/tiles/testing/TestingTileProviderClient.kt
rename to wear/tiles/tiles-testing/src/main/java/androidx/wear/tiles/testing/TestTileProviderClient.kt
index 32d0f98..322e92e 100644
--- a/wear/tiles/tiles-testing/src/main/java/androidx/wear/tiles/testing/TestingTileProviderClient.kt
+++ b/wear/tiles/tiles-testing/src/main/java/androidx/wear/tiles/testing/TestTileProviderClient.kt
@@ -46,14 +46,14 @@
* unbind, but not destroy the service. If you wish to test service destruction, you can instead
* call [Service.onDestroy] on the passed in `service` instance.
*/
-public class TestingTileProviderClient<T : TileProviderService> : TileProviderClient {
+public class TestTileProviderClient<T : TileProviderService> : TileProviderClient {
private val controller: ServiceController<T>
private val componentName: ComponentName
private val innerTileProvider: DefaultTileProviderClient
private var hasBound = false
/**
- * Build a [TestingTileProviderClient] for use with a coroutine dispatcher.
+ * Build a [TestTileProviderClient] for use with a coroutine dispatcher.
*
* @param service An instance of the [TileProviderService] class to bind to.
* @param coroutineScope A [CoroutineScope] to use when dispatching calls to the
@@ -82,7 +82,7 @@
}
/**
- * Build a [TestingTileProviderClient] for use with a given [Executor]
+ * Build a [TestTileProviderClient] for use with a given [Executor]
*
* @param service An instance of the [TileProviderService] class to bind to.
* @param executor An [Executor] to use when dispatching calls to the [TileProviderService].
diff --git a/wear/tiles/tiles-testing/src/test/java/androidx/wear/tiles/testing/TestingTileProviderClientTest.kt b/wear/tiles/tiles-testing/src/test/java/androidx/wear/tiles/testing/TestTileProviderClientTest.kt
similarity index 96%
rename from wear/tiles/tiles-testing/src/test/java/androidx/wear/tiles/testing/TestingTileProviderClientTest.kt
rename to wear/tiles/tiles-testing/src/test/java/androidx/wear/tiles/testing/TestTileProviderClientTest.kt
index dd31596..97be0b6 100644
--- a/wear/tiles/tiles-testing/src/test/java/androidx/wear/tiles/testing/TestingTileProviderClientTest.kt
+++ b/wear/tiles/tiles-testing/src/test/java/androidx/wear/tiles/testing/TestTileProviderClientTest.kt
@@ -35,17 +35,17 @@
@RunWith(TilesTestingTestRunner::class)
@DoNotInstrument
-public class TestingTileProviderClientTest {
+public class TestTileProviderClientTest {
private companion object {
private val RESOURCES_VERSION = "10"
}
private val fakeTileProvider = FakeTileProviderService()
- private lateinit var clientUnderTest: TestingTileProviderClient<FakeTileProviderService>
+ private lateinit var clientUnderTest: TestTileProviderClient<FakeTileProviderService>
@Before
public fun setUp() {
val executor = InlineExecutorService()
- clientUnderTest = TestingTileProviderClient(fakeTileProvider, executor)
+ clientUnderTest = TestTileProviderClient(fakeTileProvider, executor)
}
@Test