buffet: change error namespace conventions to align with error_codes.h
Now all error codes will be in top-level buffet::errors namespace
with specific domain as a sub-namespace, for example:
buffet::errors::commands for errors about GCD command schema.
BUG=None
TEST=USE=buffet P2_TEST_FILTER="buffet::*" FEATURES=test emerge-link platform2
Change-Id: I905d0d63fbba35a30d13ae925181c443b5449d57
Reviewed-on: https://chromium-review.googlesource.com/209249
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/buffet/commands/schema_constants.cc b/buffet/commands/schema_constants.cc
index 6504c5d..d1677c0 100644
--- a/buffet/commands/schema_constants.cc
+++ b/buffet/commands/schema_constants.cc
@@ -5,9 +5,9 @@
#include "buffet/commands/schema_constants.h"
namespace buffet {
-namespace commands {
namespace errors {
+namespace commands {
const char kDomain[] = "command_schema";
const char kOutOfRange[] = "out_of_range";
@@ -21,8 +21,10 @@
const char kUnknownProperty[] = "unexpected_parameter";
const char kInvalidObjectSchema[] = "invalid_object_schema";
const char kDuplicateCommandDef[] = "duplicate_command_definition";
+} // namespace commands
} // namespace errors
+namespace commands {
namespace attributes {
const char kType[] = "type";
const char kDisplayName[] = "displayName";
@@ -41,6 +43,6 @@
const char kCommand_Parameters[] = "parameters";
} // namespace attributes
-
} // namespace commands
+
} // namespace buffet