ProjectingObserverChromeos: Drop DBusThreadManager dependency for better testing.
commit8be1f542883adcf66eeef7f84a0a0d945e5d9bec
authorpneubeck <pneubeck@chromium.org>
Thu, 9 Oct 2014 16:46:18 +0000 (9 09:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Oct 2014 16:46:39 +0000 (9 16:46 +0000)
treeda9b30b9059b1d3d85c6828d5fa790440ebe7eb9
parent2b40a9298bd9f94fecbc6d1f8eefeff197a6f34b
ProjectingObserverChromeos: Drop DBusThreadManager dependency for better testing.

Before, the unit test of ProjectingObserverChromeos created all DBusClients that DBusThreadManager maintains (e.g. ShillServiceClient).
After this change, the unit test creates exactly the one fake DBusClient that is required.

BUG=408617

Review URL: https://codereview.chromium.org/554613005

Cr-Commit-Position: refs/heads/master@{#298906}
ash/display/projecting_observer_chromeos.cc
ash/display/projecting_observer_chromeos.h
ash/display/projecting_observer_chromeos_unittest.cc
ash/shell.cc
chromeos/dbus/dbus_thread_manager.h