diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2018-03-07 10:05:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 10:05:23 -0500 |
commit | c8793c6520426155b3e20c2678ce66bf078f72ef (patch) | |
tree | 3951f52a1a4b39ef8572da8817fb199a8cf2d8d9 /src/components/rpc_base/test/rpc_base_json_test.cc | |
parent | 1f574a2061bf5b746c6bf3734c647a4a6ba3dfd1 (diff) | |
parent | 95aec12cbd07087af530413e574415056e45e067 (diff) | |
download | sdl_core-c8793c6520426155b3e20c2678ce66bf078f72ef.tar.gz |
Merge branch 'develop' into hotfix/add_FAQ_to_READMEhotfix/add_FAQ_to_README
Diffstat (limited to 'src/components/rpc_base/test/rpc_base_json_test.cc')
-rw-r--r-- | src/components/rpc_base/test/rpc_base_json_test.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/rpc_base/test/rpc_base_json_test.cc b/src/components/rpc_base/test/rpc_base_json_test.cc index 07ac0418e0..cad9dd3a65 100644 --- a/src/components/rpc_base/test/rpc_base_json_test.cc +++ b/src/components/rpc_base/test/rpc_base_json_test.cc @@ -35,6 +35,9 @@ #include "rpc_base/rpc_base.h" namespace test { +namespace components { +namespace rpc_base_test { + using namespace rpc; using Json::Value; @@ -278,8 +281,8 @@ TEST(ValidatedTypesJson, OptionalMapAbsentValueTest) { TEST(ValidatedTypesJson, ArrayJsonTest) { Value array_value; - array_value.append(Value("Hello")); - array_value.append(Value("World")); + array_value.append(Value(10)); + array_value.append(Value(20)); Array<Integer<int8_t, 0, 32>, 2, 4> int_array(&array_value); ASSERT_TRUE(int_array.is_initialized()); ASSERT_TRUE(int_array.is_valid()); @@ -365,4 +368,6 @@ TEST(ValidatedTypesJson, OptionalIntFromJsonTest) { ASSERT_EQ(readback.asInt(), 42); } +} // namespace rpc_base_test +} // namespace components } // namespace test |