From 8ea0035f58ed06f2beb3a5d07c0ddb25814912f4 Mon Sep 17 00:00:00 2001 From: zachh Date: Fri, 22 Jun 2018 15:40:26 -0700 Subject: Improved testability. Bug: 109931227 Test: unit PiperOrigin-RevId: 201752687 Change-Id: I10e101242b86d5c277b536a1e64e47f1a033e3a3 --- java/com/android/dialer/calllog/config/CallLogConfigComponent.java | 2 ++ java/com/android/dialer/duo/stub/StubDuoModule.java | 3 +++ 2 files changed, 5 insertions(+) (limited to 'java') 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 -- cgit v1.2.3