diff options
author | Matt Spinler <spinler@us.ibm.com> | 2020-01-27 16:14:23 -0600 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2020-01-31 17:33:55 +0000 |
commit | 56e08263d6c3c7dccca02a7b3338cc0a37f4d716 (patch) | |
tree | 86c56d1ee95b232aab428477c86e83a8ccf85b6a /extensions | |
parent | 677381b8fc84d49923cf49ab9e2fe6f520f19767 (diff) | |
download | phosphor-logging-56e08263d6c3c7dccca02a7b3338cc0a37f4d716.tar.gz phosphor-logging-56e08263d6c3c7dccca02a7b3338cc0a37f4d716.zip |
PEL: HostNotifier testcase refactoring
This commit doesn't change the behavior, it just makes the following
changes to the testcase infrastructure so there is less duplication:
* Move the hostIface, mockHostIface, repo, and dataIface instances into
the test class HostNotifierTest so that all testcases can use them,
and then remove creating them in every testcase.
* MockHostIface is now a pointer, so have to change its use.
* Make the DataInterface and HosttInterface mocks be NiceMocks so that
gtest won't print warnings about functions called that don't have
EXPECT_CALLs.
* Have the default behavior of sendNewLogCmd be to send a command
successfully so that it doesn't have to be specified in every
testcase.
Change-Id: Ic393933629753b884299ee4dfa30a8bb6007ee63
Diffstat (limited to 'extensions')
0 files changed, 0 insertions, 0 deletions