summaryrefslogtreecommitdiff
path: root/src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc')
-rw-r--r--src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc b/src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc
index 40c827e17b..7f26a4968a 100644
--- a/src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc
+++ b/src/components/smart_objects/test/AlwaysTrueSchemaItem_test.cc
@@ -41,7 +41,7 @@ namespace test {
namespace components {
namespace smart_object_test {
-using namespace NsSmartDeviceLink::NsSmartObjects;
+using namespace ns_smart_device_link::ns_smart_objects;
/**
* Test AlwaysTrueSchemaItem
@@ -54,38 +54,38 @@ TEST(test_AlwaysTrueSchemaItemTest, simple_test) {
obj = 5;
rpc::ValidationReport report("RPC");
int resultType = item->validate(obj, &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
EXPECT_EQ(5, obj.asInt());
obj = true;
resultType = item->validate(obj, &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
EXPECT_TRUE(obj.asBool());
obj = "Test";
resultType = item->validate(obj, &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
EXPECT_EQ(std::string("Test"), obj.asString());
obj["First"] = "Some string";
obj["Second"] = 555;
resultType = item->validate(obj["First"], &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
resultType = item->validate(obj["Second"], &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
resultType = item->validate(obj, &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
EXPECT_EQ(std::string("Some string"), obj["First"].asString());
EXPECT_EQ(555, obj["Second"].asInt());
obj[0] = true;
obj[1] = false;
resultType = item->validate(obj[0], &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
resultType = item->validate(obj[1], &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
resultType = item->validate(obj, &report);
- EXPECT_EQ(Errors::OK, resultType);
+ EXPECT_EQ(errors::OK, resultType);
EXPECT_TRUE(obj[0].asBool());
EXPECT_FALSE(obj[1].asBool());
}