diff options
Diffstat (limited to 'src/components/utils/test/stl_utils_test.cc')
-rw-r--r-- | src/components/utils/test/stl_utils_test.cc | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/components/utils/test/stl_utils_test.cc b/src/components/utils/test/stl_utils_test.cc index dfc00de982..1fbde052f1 100644 --- a/src/components/utils/test/stl_utils_test.cc +++ b/src/components/utils/test/stl_utils_test.cc @@ -44,8 +44,7 @@ using ::utils::StlMapDeleter; class TestObject { public: - ~TestObject() { - } + ~TestObject() {} }; typedef std::map<int, TestObject*> TestMap; @@ -56,9 +55,7 @@ TEST(StlDeleter, DestructMapWithOneElement) { test_map[1] = new TestObject(); EXPECT_EQ(1u, test_map.size()); - { - StlMapDeleter<TestMap> test_list_deleter_(&test_map); - } + { StlMapDeleter<TestMap> test_list_deleter_(&test_map); } EXPECT_EQ(1u, test_map.size()); EXPECT_EQ(NULL, test_map[1]); } @@ -69,9 +66,7 @@ TEST(StlDeleter, DestructMapWithSeveralElements) { test_map[2] = new TestObject(); EXPECT_EQ(2u, test_map.size()); - { - StlMapDeleter<TestMap> test_list_deleter_(&test_map); - } + { StlMapDeleter<TestMap> test_list_deleter_(&test_map); } EXPECT_EQ(2u, test_map.size()); EXPECT_EQ(NULL, test_map[1]); EXPECT_EQ(NULL, test_map[2]); @@ -82,9 +77,7 @@ TEST(StlDeleter, DestructVectorWithOneElement) { test_vector.push_back(new TestObject()); EXPECT_EQ(1u, test_vector.size()); - { - StlCollectionDeleter<TestVector> test_list_deleter_(&test_vector); - } + { StlCollectionDeleter<TestVector> test_list_deleter_(&test_vector); } EXPECT_EQ(1u, test_vector.size()); EXPECT_EQ(NULL, test_vector[0]); } @@ -95,9 +88,7 @@ TEST(StlDeleter, DestructVectorWithSeveralElements) { test_vector.push_back(new TestObject()); EXPECT_EQ(2u, test_vector.size()); - { - StlCollectionDeleter<TestVector> test_list_deleter_(&test_vector); - } + { StlCollectionDeleter<TestVector> test_list_deleter_(&test_vector); } EXPECT_EQ(2u, test_vector.size()); EXPECT_EQ(NULL, test_vector[0]); EXPECT_EQ(NULL, test_vector[1]); |