Use nested namespace

Nested namespace is introduced in C++ 17. This saves nearly 50 lines.
This change also puts tests into a nested namespace, which saves
unnecessary using directives.

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I7c3e38588fd5c2cbd83ac13ee24327318e8c06a4
diff --git a/watch.cpp b/watch.cpp
index 32853fa..71acb15 100644
--- a/watch.cpp
+++ b/watch.cpp
@@ -8,9 +8,8 @@
 #include <phosphor-logging/elog-errors.hpp>
 #include <phosphor-logging/elog.hpp>
 #include <xyz/openbmc_project/Common/error.hpp>
-namespace phosphor
-{
-namespace certs
+
+namespace phosphor::certs
 {
 using namespace phosphor::logging;
 namespace fs = std::filesystem;
@@ -107,5 +106,4 @@
     }
 }
 
-} // namespace certs
-} // namespace phosphor
+} // namespace phosphor::certs