// Copyright (c) 2013 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LIBBRILLO_BRILLO_UDEV_MOCK_UDEV_ENUMERATE_H_ #define LIBBRILLO_BRILLO_UDEV_MOCK_UDEV_ENUMERATE_H_ #include #include #include #include namespace brillo { class BRILLO_EXPORT MockUdevEnumerate : public UdevEnumerate { public: MockUdevEnumerate() = default; ~MockUdevEnumerate() override = default; MOCK_METHOD(bool, AddMatchSubsystem, (const char*), (override)); MOCK_METHOD(bool, AddNoMatchSubsystem, (const char*), (override)); MOCK_METHOD(bool, AddMatchSysAttribute, (const char*, const char*), (override)); MOCK_METHOD(bool, AddNoMatchSysAttribute, (const char*, const char*), (override)); MOCK_METHOD(bool, AddMatchProperty, (const char*, const char*), (override)); MOCK_METHOD(bool, AddMatchSysName, (const char*), (override)); MOCK_METHOD(bool, AddMatchTag, (const char*), (override)); MOCK_METHOD(bool, AddMatchIsInitialized, (), (override)); MOCK_METHOD(bool, AddSysPath, (const char*), (override)); MOCK_METHOD(bool, ScanDevices, (), (override)); MOCK_METHOD(bool, ScanSubsystems, (), (override)); MOCK_METHOD(std::unique_ptr, GetListEntry, (), (const, override)); private: DISALLOW_COPY_AND_ASSIGN(MockUdevEnumerate); }; } // namespace brillo #endif // LIBBRILLO_BRILLO_UDEV_MOCK_UDEV_ENUMERATE_H_