• Ben Chan's avatar
    Mock more methods of dbus::Bus in dbus::MockBus. · b14d33d7
    Ben Chan authored
    This CL updates dbus::MockBus to mock dbus::Bus::AddFilterFunction and
    dbus::Bus::RemoveFilterFunction. Neither method is exercised in existing
    Chrome unit tests. However, some Chrome OS unit tests (e.g. CL:1048028)
    need to mock them, which is currently done by sub-classing
    dbus::MockBus. This CL alleviates the need of such sub-classing.
    
    Bug: None
    Change-Id: Ib5f3e41573ec900351ebedad030bb6147db3b74f
    Reviewed-on: https://chromium-review.googlesource.com/1054159Reviewed-by: default avatarRyo Hashimoto <hashimoto@chromium.org>
    Commit-Queue: Ben Chan <benchan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#557811}
    b14d33d7
mock_bus.h 3.33 KB