History log of /openbmc/phosphor-power/phosphor-regulators/test/actions/mock_action.hpp (Results 1 – 3 of 3)
Revision Date Author Comments
# 8a3db36a 05-Feb-2020 Shawn McCarney <shawnmm@us.ibm.com>

regulators: Add toString() method to Action class

Add a toString() method to the Action class and all child classes.

This method returns a string description of the action. The description
will be

regulators: Add toString() method to Action class

Add a toString() method to the Action class and all child classes.

This method returns a string description of the action. The description
will be used in journal entries and error logs when an action fails
(such as due to an I2C error).

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I083496d23bf9c3df5be1b082650a9def24be1b00

show more ...


# ea7385b8 07-Nov-2019 Shawn McCarney <shawnmm@us.ibm.com>

Use C++17 format for nested namespace definitions

Use the new C++17 format for defining nested namespaces in the
phosphor-regulators application.

The definition
namespace A::B::C
{
...
}

i

Use C++17 format for nested namespace definitions

Use the new C++17 format for defining nested namespaces in the
phosphor-regulators application.

The definition
namespace A::B::C
{
...
}

is now equivalent to
namespace A
{
namespace B
{
namespace C
{
...
}
}
}

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I284055bc94578a45d04d3561f511c0e347a8ecef

show more ...


# f2aa59d5 06-Nov-2019 Shawn McCarney <shawnmm@us.ibm.com>

Replace regulators StubAction with MockAction

Replace the hand-written StubAction class with a gmock-based MockAction
class. This is the standard OpenBMC method for stub/mock objects.

Signed-off-b

Replace regulators StubAction with MockAction

Replace the hand-written StubAction class with a gmock-based MockAction
class. This is the standard OpenBMC method for stub/mock objects.

Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I5a972032b118a40576829a08020cc2ac675520cc

show more ...