commit | 29875ff2d11abc43c496c78437c22a9c3332fc86 | [log] [tgz] |
---|---|---|
author | Peter Qiu <zqiu@google.com> | Thu Aug 27 21:24:56 2015 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri Aug 28 16:44:41 2015 -0700 |
tree | bee5341e156e4eccf2f5b56078c1a2003055e5ff | |
parent | 607796ab5bd9488a9ce4f74aeb48eefdbc7f8b46 [diff] |
shill: mock out NetlinkManager init functions Currently, NetlinkManager's init functions (Init and Start) is not being mocked out in unittest, and will attempt to create socket during test. For non-x86 boards, the socket creation would fail. I think this is because the host is a x86 machine. With the new message loop, an invalid file descriptor is not allowed. Fix it by mocking out NetlinkManager's Init and Start function for unittests. Also add the missing include for base::Closure in the ChromeosDaemon's header BUG=chromium:517680 TEST=FEATURES=test emerge-daisy shill CQ-DEPEND=CL:295772 Change-Id: I8fc86ff5dfbf8c98a940c38b8e5a38d288a914b8 Reviewed-on: https://chromium-review.googlesource.com/295932 Commit-Ready: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org>