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
diff --git a/phosphor-regulators/test/actions/mock_action.hpp b/phosphor-regulators/test/actions/mock_action.hpp
index 2535ef3..84455dd 100644
--- a/phosphor-regulators/test/actions/mock_action.hpp
+++ b/phosphor-regulators/test/actions/mock_action.hpp
@@ -20,11 +20,7 @@
#include <gmock/gmock.h>
-namespace phosphor
-{
-namespace power
-{
-namespace regulators
+namespace phosphor::power::regulators
{
class MockAction : public Action
@@ -41,6 +37,4 @@
MOCK_METHOD(bool, execute, (ActionEnvironment & environment), (override));
};
-} // namespace regulators
-} // namespace power
-} // namespace phosphor
+} // namespace phosphor::power::regulators