diff options
Diffstat (limited to 'logd/src/tests/watcher/watcher_test.cpp')
-rw-r--r-- | logd/src/tests/watcher/watcher_test.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/logd/src/tests/watcher/watcher_test.cpp b/logd/src/tests/watcher/watcher_test.cpp index 55ba720c0cb..fa8c2ffe932 100644 --- a/logd/src/tests/watcher/watcher_test.cpp +++ b/logd/src/tests/watcher/watcher_test.cpp @@ -61,14 +61,8 @@ struct DummyForwarder : public Forwarder { std::mutex lock; std::condition_variable cond; std::vector<std::string> lines; - DummyForwarder() - : Forwarder(), - lock(), - cond(), - lines() - { - } - ~DummyForwarder() override = default; + DummyForwarder(); + ~DummyForwarder() override; void forwardLine(std::string_view log_line) override { std::lock_guard guard(lock); lines.emplace_back(log_line); @@ -87,6 +81,14 @@ struct DummyForwarder : public Forwarder { } }; +DummyForwarder::DummyForwarder() + : Forwarder(), + lock(), + cond(), + lines() +{ } +DummyForwarder::~DummyForwarder() = default; + struct WatcherFixture { DummyForwarder fwd; |