commit | 2dc416d5a12f242fe0737974c3f4440acb6e6dba | [log] [tgz] |
---|---|---|
author | Junxiao Shi <git@mail1.yoursunny.com> | Mon Jul 03 04:46:16 2017 +0000 |
committer | Junxiao Shi <git@mail1.yoursunny.com> | Mon Jul 03 04:46:16 2017 +0000 |
tree | 29f143271d132fa6b6e31310edbed9221831c818 | |
parent | d21abd3f0d62f0d0dca5f5fefed6cf208195c062 [diff] [blame] |
net: add NetworkMonitorStub refs #4024 Change-Id: I20da6f3351f51667b045987dc07e88ba814a4456
diff --git a/tests/unit-tests/net/network-monitor.t.cpp b/tests/unit-tests/net/network-monitor.t.cpp index d23cb38..e46075b 100644 --- a/tests/unit-tests/net/network-monitor.t.cpp +++ b/tests/unit-tests/net/network-monitor.t.cpp
@@ -53,7 +53,7 @@ auto nm = make_unique<NetworkMonitor>(io); NM_REQUIRE_CAP(ENUM); - nm->onInterfaceAdded.connect([&] (const shared_ptr<NetworkInterface>&) { + nm->onInterfaceAdded.connect([&] (const shared_ptr<const NetworkInterface>&) { io.post([&] { nm.reset(); }); }); nm->onEnumerationCompleted.connect([&] {