122 } |
122 } |
123 |
123 |
124 //TC_ID_4_x_1 |
124 //TC_ID_4_x_1 |
125 void constructor_withoutParent() |
125 void constructor_withoutParent() |
126 { |
126 { |
127 QLocationTestUtils::uheap_mark(); |
127 //QLocationTestUtils::uheap_mark(); |
128 MyPositionAreaMonitor *myMonitor = new MyPositionAreaMonitor(); |
128 MyPositionAreaMonitor *myMonitor = new MyPositionAreaMonitor(); |
129 delete myMonitor; |
129 delete myMonitor; |
130 QLocationTestUtils::uheap_mark_end(); |
130 //QLocationTestUtils::uheap_mark_end(); |
131 } |
131 } |
132 |
132 |
133 //TC_ID_4_x_2 |
133 //TC_ID_4_x_2 |
134 void constructor_withParent() |
134 void constructor_withParent() |
135 { |
135 { |
136 QLocationTestUtils::uheap_mark(); |
136 //QLocationTestUtils::uheap_mark(); |
137 QObject* parent = new QObject; |
137 QObject* parent = new QObject; |
138 MyPositionAreaMonitor *myMonitor = new MyPositionAreaMonitor(parent); |
138 new MyPositionAreaMonitor(parent); |
139 delete parent; |
139 delete parent; |
140 QLocationTestUtils::uheap_mark_end(); |
140 //QLocationTestUtils::uheap_mark_end(); |
141 } |
141 } |
142 |
142 |
143 //TC_ID_4_x_1 |
143 //TC_ID_4_x_1 |
144 void createDefaultMonitor() |
144 void createDefaultMonitor() |
145 { |
145 { |
146 if (!QLocationTestUtils::hasDefaultMonitor()) QSKIP("No default monitor source", SkipAll); |
146 if (!QLocationTestUtils::hasDefaultMonitor()) QSKIP("No default monitor source", SkipAll); |
147 |
147 |
148 QLocationTestUtils::uheap_mark(); |
148 //QLocationTestUtils::uheap_mark(); |
149 QObject* parent = new QObject; |
149 QObject* parent = new QObject; |
150 QGeoAreaMonitor* obj = QGeoAreaMonitor::createDefaultMonitor(parent); |
150 QGeoAreaMonitor* obj = QGeoAreaMonitor::createDefaultMonitor(parent); |
151 QVERIFY(obj != 0); |
151 QVERIFY(obj != 0); |
152 delete parent; |
152 delete parent; |
153 QLocationTestUtils::uheap_mark_end(); |
153 //QLocationTestUtils::uheap_mark_end(); |
154 } |
154 } |
155 |
155 |
156 //TC_ID_4_x_1 |
156 //TC_ID_4_x_1 |
157 void center_createDefaultMonitor() |
157 void center_createDefaultMonitor() |
158 { |
158 { |