diff options
| author | William A. Kennington III <wak@google.com> | 2018-12-11 16:45:37 -0800 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-12-13 15:22:36 -0800 |
| commit | 651e87ad362e55ed4e34e6565fd0674390941a58 (patch) | |
| tree | 38903c0c1552b65629fad3a5839a5615b1e3d787 /test/source/base.cpp | |
| parent | d4b33e95f6b9bf9a2e1ad41f371fa602a49989a5 (diff) | |
| download | sdeventplus-651e87ad362e55ed4e34e6565fd0674390941a58.tar.gz sdeventplus-651e87ad362e55ed4e34e6565fd0674390941a58.zip | |
clang-tidy: Basic configuration
This also cleans up some outstanding issues detected by the
configuration.
Tested:
Ran through unit test scripts.
Change-Id: I3357a2280a681a87532d6d72315260db2ab73e87
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'test/source/base.cpp')
| -rw-r--r-- | test/source/base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/base.cpp b/test/source/base.cpp index df855c1..75a6dde 100644 --- a/test/source/base.cpp +++ b/test/source/base.cpp @@ -327,7 +327,7 @@ TEST_F(BaseMethodTest, SetPrepareError) { EXPECT_CALL(mock, sd_event_source_set_prepare(expected_source, testing::_)) .WillOnce(Return(0)); - base->set_prepare(std::move([](Base&) {})); + base->set_prepare([](Base&) {}); EXPECT_TRUE(base->get_prepare()); Base::Callback callback = [](Base&) {}; @@ -342,7 +342,7 @@ TEST_F(BaseMethodTest, SetPrepareNull) { EXPECT_CALL(mock, sd_event_source_set_prepare(expected_source, testing::_)) .WillOnce(Return(0)); - base->set_prepare(std::move([](Base&) {})); + base->set_prepare([](Base&) {}); EXPECT_TRUE(base->get_prepare()); EXPECT_CALL(mock, sd_event_source_set_prepare(expected_source, nullptr)) |

