Bug Summary

File:core/object/ListableTest.cc
Location:line 58, column 9
Description:Potential leak of memory pointed to by 'test'

Annotated Source Code

1#include <gtest/gtest.h>
2#include "core/object/Listable.h"
3#include "core/CoreIncludes.h"
4#include "core/module/ModuleInstance.h"
5
6namespace orxonox
7{
8 namespace
9 {
10 class ListableClassTest : public Listable
11 {
12 public:
13 ListableClassTest() { RegisterObject(ListableClassTest)if (ClassIdentifier<ListableClassTest>::getIdentifier()
->initializeObject(this)) return; else ((void)0)
; }
14 };
15
16 class ListableSubclassTest : public ListableClassTest
17 {
18 public:
19 ListableSubclassTest() { RegisterObject(ListableSubclassTest)if (ClassIdentifier<ListableSubclassTest>::getIdentifier
()->initializeObject(this)) return; else ((void)0)
; }
20 };
21
22 RegisterClassNoArgs(ListableClassTest)orxonox::SI_I& _ListableClassTestIdentifier = (*new orxonox
::SI_I(orxonox::registerClass<ListableClassTest>("ListableClassTest"
, new orxonox::ClassFactoryNoArgs<ListableClassTest>(),
true)))
;
23 RegisterClassNoArgs(ListableSubclassTest)orxonox::SI_I& _ListableSubclassTestIdentifier = (*new orxonox
::SI_I(orxonox::registerClass<ListableSubclassTest>("ListableSubclassTest"
, new orxonox::ClassFactoryNoArgs<ListableSubclassTest>
(), true)))
;
24
25 template <class T>
26 bool objectListContains(T* element, Context* context = Context::getRootContext())
27 {
28 for (typename ObjectList<T>::iterator it = static_cast<ObjectListElement<T>*>(context->getObjectList<T>()->begin());
29 it != static_cast<ObjectListElement<T>*>(context->getObjectList<T>()->end()); ++it)
30 if (*it == element)
31 return true;
32 return false;
33 }
34
35 // Fixture
36 class ListableTest : public ::testing::Test
37 {
38 public:
39 virtual void SetUp() override
40 {
41 new IdentifierManager();
42 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
43 Context::setRootContext(new Context(nullptr));
44 }
45
46 virtual void TearDown() override
47 {
48 Context::destroyRootContext();
49 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
50 delete &IdentifierManager::getInstance();
51 }
52 };
53 }
54
55 TEST_F(ListableTest, CanCreate)class ListableTest_CanCreate_Test : public ListableTest { public
: ListableTest_CanCreate_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); ListableTest_CanCreate_Test(ListableTest_CanCreate_Test
const &); void operator=(ListableTest_CanCreate_Test const
&);};::testing::TestInfo* const ListableTest_CanCreate_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"ListableTest", "CanCreate", __null, __null, (::testing::internal
::GetTypeId<ListableTest>()), ListableTest::SetUpTestCase
, ListableTest::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< ListableTest_CanCreate_Test>);void ListableTest_CanCreate_Test
::TestBody()
56 {
57 ListableClassTest* test = new ListableClassTest();
1
Memory is allocated
58 ASSERT_TRUE(test != nullptr)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test != nullptr)) ; else
return ::testing::internal::AssertHelper(::testing::TestPartResult
::kFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 58, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test != nullptr", "false", "true").c_str()) = ::testing::Message
()
;
2
Within the expansion of the macro 'ASSERT_TRUE':
a
Potential leak of memory pointed to by 'test'
59 delete test;
60 }
61
62 TEST_F(ListableTest, AddsToObjectList)class ListableTest_AddsToObjectList_Test : public ListableTest
{ public: ListableTest_AddsToObjectList_Test() {} private: virtual
void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_AddsToObjectList_Test
(ListableTest_AddsToObjectList_Test const &); void operator
=(ListableTest_AddsToObjectList_Test const &);};::testing
::TestInfo* const ListableTest_AddsToObjectList_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "ListableTest"
, "AddsToObjectList", __null, __null, (::testing::internal::GetTypeId
<ListableTest>()), ListableTest::SetUpTestCase, ListableTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
ListableTest_AddsToObjectList_Test>);void ListableTest_AddsToObjectList_Test
::TestBody()
63 {
64 ListableClassTest test;
65 EXPECT_EQ(1u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"ObjectList<ListableClassTest>().size()", 1u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 65, gtest_ar.failure_message()) = ::testing::Message()
;
66 EXPECT_TRUE(objectListContains<ListableClassTest>(&test))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 66, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test)", "false"
, "true").c_str()) = ::testing::Message()
;
67 }
68
69 TEST_F(ListableTest, AddsToAllObjectLists)class ListableTest_AddsToAllObjectLists_Test : public ListableTest
{ public: ListableTest_AddsToAllObjectLists_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_AddsToAllObjectLists_Test
(ListableTest_AddsToAllObjectLists_Test const &); void operator
=(ListableTest_AddsToAllObjectLists_Test const &);};::testing
::TestInfo* const ListableTest_AddsToAllObjectLists_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "ListableTest"
, "AddsToAllObjectLists", __null, __null, (::testing::internal
::GetTypeId<ListableTest>()), ListableTest::SetUpTestCase
, ListableTest::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< ListableTest_AddsToAllObjectLists_Test>);void ListableTest_AddsToAllObjectLists_Test
::TestBody()
70 {
71 ListableSubclassTest test;
72 EXPECT_EQ(1u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"ObjectList<ListableClassTest>().size()", 1u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 72, gtest_ar.failure_message()) = ::testing::Message()
;
73 EXPECT_TRUE(objectListContains<ListableClassTest>(&test))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 73, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test)", "false"
, "true").c_str()) = ::testing::Message()
;
74 EXPECT_EQ(1u, ObjectList<ListableSubclassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"ObjectList<ListableSubclassTest>().size()", 1u, ObjectList
<ListableSubclassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 74, gtest_ar.failure_message()) = ::testing::Message()
;
75 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 75, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test)"
, "false", "true").c_str()) = ::testing::Message()
;
76 }
77
78 TEST_F(ListableTest, RemovesFromObjectList)class ListableTest_RemovesFromObjectList_Test : public ListableTest
{ public: ListableTest_RemovesFromObjectList_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_RemovesFromObjectList_Test
(ListableTest_RemovesFromObjectList_Test const &); void operator
=(ListableTest_RemovesFromObjectList_Test const &);};::testing
::TestInfo* const ListableTest_RemovesFromObjectList_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "ListableTest"
, "RemovesFromObjectList", __null, __null, (::testing::internal
::GetTypeId<ListableTest>()), ListableTest::SetUpTestCase
, ListableTest::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< ListableTest_RemovesFromObjectList_Test>);void ListableTest_RemovesFromObjectList_Test
::TestBody()
79 {
80 EXPECT_EQ(0u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"ObjectList<ListableClassTest>().size()", 0u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 80, gtest_ar.failure_message()) = ::testing::Message()
;
81 {
82 ListableClassTest test;
83 EXPECT_EQ(1u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"ObjectList<ListableClassTest>().size()", 1u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 83, gtest_ar.failure_message()) = ::testing::Message()
;
84 EXPECT_TRUE(objectListContains<ListableClassTest>(&test))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 84, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test)", "false"
, "true").c_str()) = ::testing::Message()
;
85 }
86 EXPECT_EQ(0u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"ObjectList<ListableClassTest>().size()", 0u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 86, gtest_ar.failure_message()) = ::testing::Message()
;
87 }
88
89 TEST_F(ListableTest, RemovesFromAllObjectLists)class ListableTest_RemovesFromAllObjectLists_Test : public ListableTest
{ public: ListableTest_RemovesFromAllObjectLists_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_RemovesFromAllObjectLists_Test
(ListableTest_RemovesFromAllObjectLists_Test const &); void
operator=(ListableTest_RemovesFromAllObjectLists_Test const &
);};::testing::TestInfo* const ListableTest_RemovesFromAllObjectLists_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"ListableTest", "RemovesFromAllObjectLists", __null, __null,
(::testing::internal::GetTypeId<ListableTest>()), ListableTest
::SetUpTestCase, ListableTest::TearDownTestCase, new ::testing
::internal::TestFactoryImpl< ListableTest_RemovesFromAllObjectLists_Test
>);void ListableTest_RemovesFromAllObjectLists_Test::TestBody
()
90 {
91 EXPECT_EQ(0u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"ObjectList<ListableClassTest>().size()", 0u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 91, gtest_ar.failure_message()) = ::testing::Message()
;
92 EXPECT_EQ(0u, ObjectList<ListableSubclassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"ObjectList<ListableSubclassTest>().size()", 0u, ObjectList
<ListableSubclassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 92, gtest_ar.failure_message()) = ::testing::Message()
;
93 {
94 ListableSubclassTest test;
95 EXPECT_EQ(1u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"ObjectList<ListableClassTest>().size()", 1u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 95, gtest_ar.failure_message()) = ::testing::Message()
;
96 EXPECT_TRUE(objectListContains<ListableClassTest>(&test))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 96, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test)", "false"
, "true").c_str()) = ::testing::Message()
;
97 EXPECT_EQ(1u, ObjectList<ListableSubclassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"ObjectList<ListableSubclassTest>().size()", 1u, ObjectList
<ListableSubclassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 97, gtest_ar.failure_message()) = ::testing::Message()
;
98 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 98, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test)"
, "false", "true").c_str()) = ::testing::Message()
;
99 }
100 EXPECT_EQ(0u, ObjectList<ListableClassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"ObjectList<ListableClassTest>().size()", 0u, ObjectList
<ListableClassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 100, gtest_ar.failure_message()) = ::testing::Message()
;
101 EXPECT_EQ(0u, ObjectList<ListableSubclassTest>().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"ObjectList<ListableSubclassTest>().size()", 0u, ObjectList
<ListableSubclassTest>().size()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 101, gtest_ar.failure_message()) = ::testing::Message()
;
102 }
103
104 TEST_F(ListableTest, CanAddObjectToContext)class ListableTest_CanAddObjectToContext_Test : public ListableTest
{ public: ListableTest_CanAddObjectToContext_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_CanAddObjectToContext_Test
(ListableTest_CanAddObjectToContext_Test const &); void operator
=(ListableTest_CanAddObjectToContext_Test const &);};::testing
::TestInfo* const ListableTest_CanAddObjectToContext_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "ListableTest"
, "CanAddObjectToContext", __null, __null, (::testing::internal
::GetTypeId<ListableTest>()), ListableTest::SetUpTestCase
, ListableTest::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< ListableTest_CanAddObjectToContext_Test>);void ListableTest_CanAddObjectToContext_Test
::TestBody()
105 {
106 Context context(nullptr);
107 ListableSubclassTest test;
108
109 test.setContext(&context);
110
111 // object is in new context
112 EXPECT_EQ(1u, context.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"context.getObjectList<ListableClassTest>()->size()"
, 1u, context.getObjectList<ListableClassTest>()->size
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 112, gtest_ar.failure_message()) = ::testing::Message()
;
113 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &context))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &context))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 113, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &context)"
, "false", "true").c_str()) = ::testing::Message()
;
114 EXPECT_EQ(1u, context.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"context.getObjectList<ListableSubclassTest>()->size()"
, 1u, context.getObjectList<ListableSubclassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 114, gtest_ar.failure_message()) = ::testing::Message()
;
115 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &context))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &context))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 115, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &context)"
, "false", "true").c_str()) = ::testing::Message()
;
116 }
117
118 TEST_F(ListableTest, CanAddObjectToSubContext)class ListableTest_CanAddObjectToSubContext_Test : public ListableTest
{ public: ListableTest_CanAddObjectToSubContext_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_CanAddObjectToSubContext_Test
(ListableTest_CanAddObjectToSubContext_Test const &); void
operator=(ListableTest_CanAddObjectToSubContext_Test const &
);};::testing::TestInfo* const ListableTest_CanAddObjectToSubContext_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"ListableTest", "CanAddObjectToSubContext", __null, __null, (
::testing::internal::GetTypeId<ListableTest>()), ListableTest
::SetUpTestCase, ListableTest::TearDownTestCase, new ::testing
::internal::TestFactoryImpl< ListableTest_CanAddObjectToSubContext_Test
>);void ListableTest_CanAddObjectToSubContext_Test::TestBody
()
119 {
120 Context baseContext(nullptr);
121 Context subContext(&baseContext);
122 ListableSubclassTest test;
123
124 test.setContext(&subContext);
125
126 // object is in both contexts
127 EXPECT_EQ(1u, baseContext.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"baseContext.getObjectList<ListableClassTest>()->size()"
, 1u, baseContext.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 127, gtest_ar.failure_message()) = ::testing::Message()
;
128 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &baseContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &baseContext))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 128, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &baseContext)"
, "false", "true").c_str()) = ::testing::Message()
;
129 EXPECT_EQ(1u, baseContext.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"baseContext.getObjectList<ListableSubclassTest>()->size()"
, 1u, baseContext.getObjectList<ListableSubclassTest>()
->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 129, gtest_ar.failure_message()) = ::testing::Message()
;
130 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &baseContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &baseContext))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 130, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &baseContext)"
, "false", "true").c_str()) = ::testing::Message()
;
131
132 EXPECT_EQ(1u, subContext.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext.getObjectList<ListableClassTest>()->size()"
, 1u, subContext.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 132, gtest_ar.failure_message()) = ::testing::Message()
;
133 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &subContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &subContext))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 133, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext)"
, "false", "true").c_str()) = ::testing::Message()
;
134 EXPECT_EQ(1u, subContext.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext.getObjectList<ListableSubclassTest>()->size()"
, 1u, subContext.getObjectList<ListableSubclassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 134, gtest_ar.failure_message()) = ::testing::Message()
;
135 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &subContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &subContext))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 135, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext)"
, "false", "true").c_str()) = ::testing::Message()
;
136 }
137
138 TEST_F(ListableTest, CanChangeContext)class ListableTest_CanChangeContext_Test : public ListableTest
{ public: ListableTest_CanChangeContext_Test() {} private: virtual
void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_CanChangeContext_Test
(ListableTest_CanChangeContext_Test const &); void operator
=(ListableTest_CanChangeContext_Test const &);};::testing
::TestInfo* const ListableTest_CanChangeContext_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "ListableTest"
, "CanChangeContext", __null, __null, (::testing::internal::GetTypeId
<ListableTest>()), ListableTest::SetUpTestCase, ListableTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
ListableTest_CanChangeContext_Test>);void ListableTest_CanChangeContext_Test
::TestBody()
139 {
140 Context* rootContext = Context::getRootContext();
141 Context newContext(nullptr);
142 ListableSubclassTest test;
143
144 // object is in root context
145 EXPECT_EQ(1u, rootContext->getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableClassTest>()->size()"
, 1u, rootContext->getObjectList<ListableClassTest>(
)->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 145, gtest_ar.failure_message()) = ::testing::Message()
;
146 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 146, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
147 EXPECT_EQ(1u, rootContext->getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableSubclassTest>()->size()"
, 1u, rootContext->getObjectList<ListableSubclassTest>
()->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 147, gtest_ar.failure_message()) = ::testing::Message()
;
148 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 148, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
149
150 // object is NOT in new context
151 EXPECT_EQ(0u, newContext.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"newContext.getObjectList<ListableClassTest>()->size()"
, 0u, newContext.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 151, gtest_ar.failure_message()) = ::testing::Message()
;
152 EXPECT_FALSE(objectListContains<ListableClassTest>(&test, &newContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableClassTest>(&test, &newContext)))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 152, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &newContext)"
, "true", "false").c_str()) = ::testing::Message()
;
153 EXPECT_EQ(0u, newContext.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"newContext.getObjectList<ListableSubclassTest>()->size()"
, 0u, newContext.getObjectList<ListableSubclassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 153, gtest_ar.failure_message()) = ::testing::Message()
;
154 EXPECT_FALSE(objectListContains<ListableSubclassTest>(&test, &newContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableSubclassTest>(&test, &newContext)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 154, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &newContext)"
, "true", "false").c_str()) = ::testing::Message()
;
155
156 test.setContext(&newContext);
157
158 // object was removed from root context
159 EXPECT_EQ(0u, rootContext->getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"rootContext->getObjectList<ListableClassTest>()->size()"
, 0u, rootContext->getObjectList<ListableClassTest>(
)->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 159, gtest_ar.failure_message()) = ::testing::Message()
;
160 EXPECT_FALSE(objectListContains<ListableClassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableClassTest>(&test, rootContext)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 160, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, rootContext)"
, "true", "false").c_str()) = ::testing::Message()
;
161 EXPECT_EQ(0u, rootContext->getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"rootContext->getObjectList<ListableSubclassTest>()->size()"
, 0u, rootContext->getObjectList<ListableSubclassTest>
()->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 161, gtest_ar.failure_message()) = ::testing::Message()
;
162 EXPECT_FALSE(objectListContains<ListableSubclassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableSubclassTest>(&test, rootContext)))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 162, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, rootContext)"
, "true", "false").c_str()) = ::testing::Message()
;
163
164 // object is now in new context
165 EXPECT_EQ(1u, newContext.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"newContext.getObjectList<ListableClassTest>()->size()"
, 1u, newContext.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 165, gtest_ar.failure_message()) = ::testing::Message()
;
166 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &newContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &newContext))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 166, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &newContext)"
, "false", "true").c_str()) = ::testing::Message()
;
167 EXPECT_EQ(1u, newContext.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"newContext.getObjectList<ListableSubclassTest>()->size()"
, 1u, newContext.getObjectList<ListableSubclassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 167, gtest_ar.failure_message()) = ::testing::Message()
;
168 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &newContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &newContext))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 168, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &newContext)"
, "false", "true").c_str()) = ::testing::Message()
;
169 }
170
171 TEST_F(ListableTest, CanChangeToSubContext)class ListableTest_CanChangeToSubContext_Test : public ListableTest
{ public: ListableTest_CanChangeToSubContext_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); ListableTest_CanChangeToSubContext_Test
(ListableTest_CanChangeToSubContext_Test const &); void operator
=(ListableTest_CanChangeToSubContext_Test const &);};::testing
::TestInfo* const ListableTest_CanChangeToSubContext_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "ListableTest"
, "CanChangeToSubContext", __null, __null, (::testing::internal
::GetTypeId<ListableTest>()), ListableTest::SetUpTestCase
, ListableTest::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< ListableTest_CanChangeToSubContext_Test>);void ListableTest_CanChangeToSubContext_Test
::TestBody()
172 {
173 Context* rootContext = Context::getRootContext();
174 Context subContext(rootContext);
175 ListableSubclassTest test;
176
177 // object is in root context
178 EXPECT_EQ(1u, rootContext->getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableClassTest>()->size()"
, 1u, rootContext->getObjectList<ListableClassTest>(
)->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 178, gtest_ar.failure_message()) = ::testing::Message()
;
179 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 179, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
180 EXPECT_EQ(1u, rootContext->getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableSubclassTest>()->size()"
, 1u, rootContext->getObjectList<ListableSubclassTest>
()->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 180, gtest_ar.failure_message()) = ::testing::Message()
;
181 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 181, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
182
183 // object is NOT in sub context
184 EXPECT_EQ(0u, subContext.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"subContext.getObjectList<ListableClassTest>()->size()"
, 0u, subContext.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 184, gtest_ar.failure_message()) = ::testing::Message()
;
185 EXPECT_FALSE(objectListContains<ListableClassTest>(&test, &subContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableClassTest>(&test, &subContext)))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 185, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext)"
, "true", "false").c_str()) = ::testing::Message()
;
186 EXPECT_EQ(0u, subContext.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"subContext.getObjectList<ListableSubclassTest>()->size()"
, 0u, subContext.getObjectList<ListableSubclassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 186, gtest_ar.failure_message()) = ::testing::Message()
;
187 EXPECT_FALSE(objectListContains<ListableSubclassTest>(&test, &subContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableSubclassTest>(&test, &subContext)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 187, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext)"
, "true", "false").c_str()) = ::testing::Message()
;
188
189 test.setContext(&subContext);
190
191 // object is still in root context
192 EXPECT_EQ(1u, rootContext->getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableClassTest>()->size()"
, 1u, rootContext->getObjectList<ListableClassTest>(
)->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 192, gtest_ar.failure_message()) = ::testing::Message()
;
193 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 193, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
194 EXPECT_EQ(1u, rootContext->getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableSubclassTest>()->size()"
, 1u, rootContext->getObjectList<ListableSubclassTest>
()->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 194, gtest_ar.failure_message()) = ::testing::Message()
;
195 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 195, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
196
197 // object is now also in sub context
198 EXPECT_EQ(1u, subContext.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext.getObjectList<ListableClassTest>()->size()"
, 1u, subContext.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 198, gtest_ar.failure_message()) = ::testing::Message()
;
199 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &subContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &subContext))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 199, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext)"
, "false", "true").c_str()) = ::testing::Message()
;
200 EXPECT_EQ(1u, subContext.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext.getObjectList<ListableSubclassTest>()->size()"
, 1u, subContext.getObjectList<ListableSubclassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 200, gtest_ar.failure_message()) = ::testing::Message()
;
201 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &subContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &subContext))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 201, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext)"
, "false", "true").c_str()) = ::testing::Message()
;
202 }
203
204 TEST_F(ListableTest, CanChangeFromSubcontextToSubContext)class ListableTest_CanChangeFromSubcontextToSubContext_Test :
public ListableTest { public: ListableTest_CanChangeFromSubcontextToSubContext_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); ListableTest_CanChangeFromSubcontextToSubContext_Test
(ListableTest_CanChangeFromSubcontextToSubContext_Test const &
); void operator=(ListableTest_CanChangeFromSubcontextToSubContext_Test
const &);};::testing::TestInfo* const ListableTest_CanChangeFromSubcontextToSubContext_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"ListableTest", "CanChangeFromSubcontextToSubContext", __null
, __null, (::testing::internal::GetTypeId<ListableTest>
()), ListableTest::SetUpTestCase, ListableTest::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< ListableTest_CanChangeFromSubcontextToSubContext_Test
>);void ListableTest_CanChangeFromSubcontextToSubContext_Test
::TestBody()
205 {
206 Context* rootContext = Context::getRootContext();
207 Context subContext1(rootContext);
208 Context subContext2(rootContext);
209 ListableSubclassTest test;
210
211 test.setContext(&subContext1);
212
213 // object is in root context
214 EXPECT_EQ(1u, rootContext->getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableClassTest>()->size()"
, 1u, rootContext->getObjectList<ListableClassTest>(
)->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 214, gtest_ar.failure_message()) = ::testing::Message()
;
215 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 215, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
216 EXPECT_EQ(1u, rootContext->getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableSubclassTest>()->size()"
, 1u, rootContext->getObjectList<ListableSubclassTest>
()->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 216, gtest_ar.failure_message()) = ::testing::Message()
;
217 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 217, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
218
219 // object is also in sub context 1
220 EXPECT_EQ(1u, subContext1.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext1.getObjectList<ListableClassTest>()->size()"
, 1u, subContext1.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 220, gtest_ar.failure_message()) = ::testing::Message()
;
221 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &subContext1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &subContext1))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 221, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext1)"
, "false", "true").c_str()) = ::testing::Message()
;
222 EXPECT_EQ(1u, subContext1.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext1.getObjectList<ListableSubclassTest>()->size()"
, 1u, subContext1.getObjectList<ListableSubclassTest>()
->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 222, gtest_ar.failure_message()) = ::testing::Message()
;
223 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &subContext1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &subContext1))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 223, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext1)"
, "false", "true").c_str()) = ::testing::Message()
;
224
225 // object is NOT in sub context 2
226 EXPECT_EQ(0u, subContext2.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"subContext2.getObjectList<ListableClassTest>()->size()"
, 0u, subContext2.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 226, gtest_ar.failure_message()) = ::testing::Message()
;
227 EXPECT_FALSE(objectListContains<ListableClassTest>(&test, &subContext2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableClassTest>(&test, &subContext2)))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 227, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext2)"
, "true", "false").c_str()) = ::testing::Message()
;
228 EXPECT_EQ(0u, subContext2.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"subContext2.getObjectList<ListableSubclassTest>()->size()"
, 0u, subContext2.getObjectList<ListableSubclassTest>()
->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 228, gtest_ar.failure_message()) = ::testing::Message()
;
229 EXPECT_FALSE(objectListContains<ListableSubclassTest>(&test, &subContext2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableSubclassTest>(&test, &subContext2)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 229, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext2)"
, "true", "false").c_str()) = ::testing::Message()
;
230
231 test.setContext(&subContext2);
232
233 // object is still in root context
234 EXPECT_EQ(1u, rootContext->getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableClassTest>()->size()"
, 1u, rootContext->getObjectList<ListableClassTest>(
)->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 234, gtest_ar.failure_message()) = ::testing::Message()
;
235 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 235, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
236 EXPECT_EQ(1u, rootContext->getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"rootContext->getObjectList<ListableSubclassTest>()->size()"
, 1u, rootContext->getObjectList<ListableSubclassTest>
()->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 236, gtest_ar.failure_message()) = ::testing::Message()
;
237 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, rootContext))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, rootContext))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 237, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, rootContext)"
, "false", "true").c_str()) = ::testing::Message()
;
238
239 // object was removed from sub context 1
240 EXPECT_EQ(0u, subContext1.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"subContext1.getObjectList<ListableClassTest>()->size()"
, 0u, subContext1.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 240, gtest_ar.failure_message()) = ::testing::Message()
;
241 EXPECT_FALSE(objectListContains<ListableClassTest>(&test, &subContext1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableClassTest>(&test, &subContext1)))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 241, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext1)"
, "true", "false").c_str()) = ::testing::Message()
;
242 EXPECT_EQ(0u, subContext1.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"subContext1.getObjectList<ListableSubclassTest>()->size()"
, 0u, subContext1.getObjectList<ListableSubclassTest>()
->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 242, gtest_ar.failure_message()) = ::testing::Message()
;
243 EXPECT_FALSE(objectListContains<ListableSubclassTest>(&test, &subContext1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(objectListContains<
ListableSubclassTest>(&test, &subContext1)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 243, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext1)"
, "true", "false").c_str()) = ::testing::Message()
;
244
245 // object is now in sub context 2
246 EXPECT_EQ(1u, subContext2.getObjectList<ListableClassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext2.getObjectList<ListableClassTest>()->size()"
, 1u, subContext2.getObjectList<ListableClassTest>()->
size()))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 246, gtest_ar.failure_message()) = ::testing::Message()
;
247 EXPECT_TRUE(objectListContains<ListableClassTest>(&test, &subContext2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableClassTest>(&test, &subContext2))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 247, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableClassTest>(&test, &subContext2)"
, "false", "true").c_str()) = ::testing::Message()
;
248 EXPECT_EQ(1u, subContext2.getObjectList<ListableSubclassTest>()->size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"subContext2.getObjectList<ListableSubclassTest>()->size()"
, 1u, subContext2.getObjectList<ListableSubclassTest>()
->size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 248, gtest_ar.failure_message()) = ::testing::Message()
;
249 EXPECT_TRUE(objectListContains<ListableSubclassTest>(&test, &subContext2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(objectListContains<
ListableSubclassTest>(&test, &subContext2))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/object/ListableTest.cc"
, 249, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "objectListContains<ListableSubclassTest>(&test, &subContext2)"
, "false", "true").c_str()) = ::testing::Message()
;
250 }
251}