summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2018-06-22 15:40:26 -0700
committerEric Erfanian <erfanian@google.com>2018-06-26 16:22:53 +0000
commit8ea0035f58ed06f2beb3a5d07c0ddb25814912f4 (patch)
tree8c65bcfaa37113846d90fc411b9054845082f634
parent56060f523243c2aed38ea818ef55c3260a0b8475 (diff)
Improved testability.
Bug: 109931227 Test: unit PiperOrigin-RevId: 201752687 Change-Id: I10e101242b86d5c277b536a1e64e47f1a033e3a3
-rw-r--r--java/com/android/dialer/calllog/config/CallLogConfigComponent.java2
-rw-r--r--java/com/android/dialer/duo/stub/StubDuoModule.java3
2 files changed, 5 insertions, 0 deletions
diff --git a/java/com/android/dialer/calllog/config/CallLogConfigComponent.java b/java/com/android/dialer/calllog/config/CallLogConfigComponent.java
index c325025f3..7aaf63848 100644
--- a/java/com/android/dialer/calllog/config/CallLogConfigComponent.java
+++ b/java/com/android/dialer/calllog/config/CallLogConfigComponent.java
@@ -17,6 +17,7 @@ package com.android.dialer.calllog.config;
import android.content.Context;
import com.android.dialer.inject.HasRootComponent;
+import com.android.dialer.inject.IncludeInDialerRoot;
import dagger.Subcomponent;
/** Dagger component for the call log config. */
@@ -31,6 +32,7 @@ public abstract class CallLogConfigComponent {
}
/** Used to refer to the root application component. */
+ @IncludeInDialerRoot
public interface HasComponent {
CallLogConfigComponent callLogConfigComponent();
}
diff --git a/java/com/android/dialer/duo/stub/StubDuoModule.java b/java/com/android/dialer/duo/stub/StubDuoModule.java
index 604406a94..57c357080 100644
--- a/java/com/android/dialer/duo/stub/StubDuoModule.java
+++ b/java/com/android/dialer/duo/stub/StubDuoModule.java
@@ -17,11 +17,14 @@
package com.android.dialer.duo.stub;
import com.android.dialer.duo.Duo;
+import com.android.dialer.inject.DialerVariant;
+import com.android.dialer.inject.InstallIn;
import dagger.Binds;
import dagger.Module;
import javax.inject.Singleton;
@Module
+@InstallIn(variants = DialerVariant.DIALER_TEST)
public abstract class StubDuoModule {
@Binds