Re: Mock Testing of Grilo Plugins
- From: Víctor M. Jáquez L. <vjaquez igalia com>
- To: grilo-list gnome org
- Subject: Re: Mock Testing of Grilo Plugins
- Date: Thu, 26 Jul 2012 16:01:26 +0200
On Wed, Jul 25, 2012 at 10:36:01AM +0200, Mathias Hasselmann wrote:
> 3) Add the possibility to inject a custom, static request handler into
> GrlNetWc. This request handler(s) would catch each request passed to
> GrlNetWc and in the case of the mock handler deliver results from local
> files. For unknown files they'd just trigger an assertion. This approach
> would avoid changes to plugin code, but it would _slightly_ increase the
> complexity of GrlNetWc.
As Jens already said, get_url_now() has two implementation which is chosen in
compile time, given the available libsoup version.
Hence, it would be possible to add a third implementation, chosen at compile
time by the unit tests.
vmjl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]