Make PackageKit mocking complete
authorKlaus Kämpf <kkaempf@suse.de>
Fri, 25 Sep 2009 16:00:10 +0000 (18:00 +0200)
committerKlaus Kämpf <kkaempf@suse.de>
Fri, 25 Sep 2009 16:00:10 +0000 (18:00 +0200)
commit7380f768119ed432c1cc306826e0fabadaa79dd5
treea179dcc95ec7d13dfcb320b7f055d93a4fbced37
parent29e4a25e2a8184da6ae1850c65024fb31f4865d5
Make PackageKit mocking complete

This commit completes the mocking of PackageKit via D-Bus.

It introduces a PackageKitStub class and a PackageKitResult class.

PackageKitStub covers the complete D-Bus communication, PackageKitResult
the expected results from a function call (i.e. "GetUpdates").

The mocking is complete up to and including the socket level. The
results are sent to the socket and then processed through ruby-dbus,
making it completely transparent to the application.
plugins/patches/test/packagekit_stub.rb