diff options
Diffstat (limited to 'brillo/udev/mock_udev_list_entry.h')
-rw-r--r-- | brillo/udev/mock_udev_list_entry.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/brillo/udev/mock_udev_list_entry.h b/brillo/udev/mock_udev_list_entry.h index 0da1246..255b6e2 100644 --- a/brillo/udev/mock_udev_list_entry.h +++ b/brillo/udev/mock_udev_list_entry.h @@ -18,11 +18,13 @@ class BRILLO_EXPORT MockUdevListEntry : public UdevListEntry { MockUdevListEntry() = default; ~MockUdevListEntry() override = default; - MOCK_CONST_METHOD0(GetNext, std::unique_ptr<UdevListEntry>()); - MOCK_CONST_METHOD1(GetByName, - std::unique_ptr<UdevListEntry>(const char* name)); - MOCK_CONST_METHOD0(GetName, const char*()); - MOCK_CONST_METHOD0(GetValue, const char*()); + MOCK_METHOD(std::unique_ptr<UdevListEntry>, GetNext, (), (const, override)); + MOCK_METHOD(std::unique_ptr<UdevListEntry>, + GetByName, + (const char*), + (const, override)); + MOCK_METHOD(const char*, GetName, (), (const, override)); + MOCK_METHOD(const char*, GetValue, (), (const, override)); private: DISALLOW_COPY_AND_ASSIGN(MockUdevListEntry); |