diff options
| author | William A. Kennington III <wak@google.com> | 2018-07-17 17:00:56 -0700 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-07-17 18:14:28 -0700 |
| commit | e0f1d199e0defcab9ded6043e77aa5db244a3247 (patch) | |
| tree | 8ed978c2fc70de60d56f9d22f0d991ce30c8762b /test/source/base.cpp | |
| parent | 4e9e604f02da41da974607be1ee00b0252776c82 (diff) | |
| download | sdeventplus-e0f1d199e0defcab9ded6043e77aa5db244a3247.tar.gz sdeventplus-e0f1d199e0defcab9ded6043e77aa5db244a3247.zip | |
source/base: Make callback handling generic
Diffstat (limited to 'test/source/base.cpp')
| -rw-r--r-- | test/source/base.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/source/base.cpp b/test/source/base.cpp index 435b6f2..bc0eec0 100644 --- a/test/source/base.cpp +++ b/test/source/base.cpp @@ -36,6 +36,8 @@ class BaseImpl : public Base Base(event, source, std::false_type()) { } + + using Base::get_prepare; }; class BaseTest : public testing::Test @@ -76,7 +78,7 @@ class BaseTest : public testing::Test return ret; } - void set_prepare_placeholder(Base& base) + void set_prepare_placeholder(BaseImpl& base) { EXPECT_CALL(mock, sd_event_source_set_prepare(base.get(), testing::_)) .WillOnce(Return(0)); |

