commit | 1c0debcb46cef2dc97b068f49f960674c52f338e | [log] [tgz] |
---|---|---|
author | Samuel Tan <samueltan@google.com> | Fri Jul 24 13:26:21 2015 -0700 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Sat Aug 01 02:51:57 2015 +0000 |
tree | 0c1b68432ad11fbd8a09e447a790d066247f3bc4 | |
parent | c8fab0c129ea3e55fd89719f6e16c78ca505e05c [diff] |
shill: add MockIcmpSession, IcmpSessionFactory, and MockIcmpSessionFactory Add MockIcmpSession class that allows for mocking of IcmpSession function calls. Add an IcmpSessionFactory and a corresponding Mock of this factory to allow IcmpSessions that are dynamically allocated within a class implementation to be mocked in unit tests. A forthcoming CL will use these classes for testing. BUG=None TEST=Compiling shill for unit tests succeeds. Change-Id: Ic327a19229d25146abf62f2228782b1826b186e7 Reviewed-on: https://chromium-review.googlesource.com/289954 Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>