summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBrandon Kim <brandonkim@google.com>2019-11-05 16:28:40 -0800
committerBrandon Kim <brandonkim@google.com>2019-11-05 17:04:58 -0800
commit493b3af0ae9eaaa39333239df59aa3b45178c7f1 (patch)
tree9a3269d7216889554b6e2716983ee51571ad92eb /tools
parent891c5014a88b43e055cf32221222296793b6b621 (diff)
downloadphosphor-ipmi-flash-493b3af0ae9eaaa39333239df59aa3b45178c7f1.tar.gz
phosphor-ipmi-flash-493b3af0ae9eaaa39333239df59aa3b45178c7f1.zip
internal: Add pread pwrite support in sys
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I84c5e7f493afbb0894528f5d0986180b7109e170
Diffstat (limited to 'tools')
-rw-r--r--tools/test/internal_sys_mock.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test/internal_sys_mock.hpp b/tools/test/internal_sys_mock.hpp
index 06aa023..ce37d91 100644
--- a/tools/test/internal_sys_mock.hpp
+++ b/tools/test/internal_sys_mock.hpp
@@ -18,6 +18,8 @@ class InternalSysMock : public Sys
MOCK_CONST_METHOD2(open, int(const char*, int));
MOCK_CONST_METHOD3(read, int(int, void*, std::size_t));
+ MOCK_CONST_METHOD4(pread, int(int, void*, std::size_t, off_t));
+ MOCK_CONST_METHOD4(pwrite, int(int, const void*, std::size_t, off_t));
MOCK_CONST_METHOD1(close, int(int));
MOCK_CONST_METHOD6(mmap, void*(void*, std::size_t, int, int, int, off_t));
MOCK_CONST_METHOD2(munmap, int(void*, std::size_t));
OpenPOWER on IntegriCloud