Skip to content

Commit c380714

Browse files
committed
add NON_FUNCTIONAL_BROWSER_SELECTOR
1 parent 5baaba0 commit c380714

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

common4j/src/testFixtures/java/com/microsoft/identity/common/components/MockPlatformComponentsFactory.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
package com.microsoft.identity.common.components;
2424

2525
import com.microsoft.identity.common.java.WarningType;
26+
import com.microsoft.identity.common.java.browser.Browser;
27+
import com.microsoft.identity.common.java.browser.IBrowserSelector;
2628
import com.microsoft.identity.common.java.commands.ICommand;
2729
import com.microsoft.identity.common.java.crypto.IDevicePopManager;
2830
import com.microsoft.identity.common.java.exception.ClientException;
@@ -66,6 +68,7 @@ public static PlatformComponents.PlatformComponentsBuilder getNonFunctionalBuild
6668
.authorizationStrategyFactory(NON_FUNCTIONAL_AUTH_STRATEGY_FACTORY)
6769
.stateGenerator(NON_FUNCTIONAL_STATE_GENERATOR)
6870
.platformUtil(NON_FUNCTIONAL_PLATFORM_UTIL)
71+
.browserSelector(NON_FUNCTIONAL_BROWSER_SELECTOR)
6972
.httpClientWrapper(new DefaultHttpClientWrapper());
7073
return builder;
7174
}
@@ -197,4 +200,15 @@ public List<Map.Entry<String, String>> updateWithAndGetPlatformSpecificExtraQuer
197200
return originalList;
198201
}
199202
};
203+
204+
public static final IBrowserSelector NON_FUNCTIONAL_BROWSER_SELECTOR = new IBrowserSelector() {
205+
206+
@Nullable
207+
@Override
208+
public Browser select(@NonNull List<BrowserDescriptor> browserSafeList, @Nullable BrowserDescriptor preferredBrowserDescriptor) {
209+
return null;
210+
}
211+
};
212+
213+
200214
}

0 commit comments

Comments
 (0)