google-gemini / generative-ai-android

The official Android library for the Google Gemini API
https://ai.google.dev/gemini-api/docs/get-started/tutorial?lang=android
Apache License 2.0
710 stars 154 forks source link

change the test constructor to allow injecting an http engine to allo… #211

Open davidmotson opened 2 months ago

davidmotson commented 2 months ago

…w more configuration of the mockengine

tanzimfh commented 2 months ago

I don't think the test constructor is needed anymore. Reverting fa9688a should achieve what you're looking for.

davidmotson commented 2 months ago

I don't think the test constructor is needed anymore. Reverting fa9688a should achieve what you're looking for.

I don't think that's sufficient, the public constructor does not allow me to pass an http engine, that constructor is internal only.