Changeset 10401 for code/branches/core7
- Timestamp:
- Apr 26, 2015, 3:34:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/test/util/output/OutputManagerTest.cc
r9547 r10401 98 98 99 99 EXPECT_FALSE(manager.getListeners().empty()); 100 101 manager.unregisterListener(&listener); 100 102 } 101 103 … … 123 125 124 126 EXPECT_FALSE(listener.getListeners().empty()); 127 128 manager.unregisterListener(&listener); 125 129 } 126 130 … … 156 160 EXPECT_EQ(level::verbose_more, manager.getCombinedAdditionalContextsLevelMask()); 157 161 EXPECT_EQ(context::unittest2().mask, manager.getCombinedAdditionalContextsMask()); 162 163 manager.unregisterListener(&listener); 158 164 } 159 165 … … 193 199 194 200 EXPECT_EQ(level::internal_warning, manager.getCombinedLevelMask()); 201 202 manager.unregisterListener(&listener); 195 203 } 196 204 … … 208 216 209 217 EXPECT_EQ(level::internal_warning, manager.getCombinedAdditionalContextsLevelMask()); 218 219 manager.unregisterListener(&listener); 210 220 } 211 221 … … 223 233 224 234 EXPECT_EQ(context::unittest2().mask, manager.getCombinedAdditionalContextsMask()); 235 236 manager.unregisterListener(&listener); 225 237 } 226 238 … … 254 266 EXPECT_EQ(level::verbose | level::verbose_more | level::verbose_ultra, manager.getCombinedAdditionalContextsLevelMask()); 255 267 EXPECT_EQ(context::unittest1().mask | context::unittest2().mask | context::unittest3().mask, manager.getCombinedAdditionalContextsMask()); 268 269 manager.unregisterListener(&listener1); 270 manager.unregisterListener(&listener2); 271 manager.unregisterListener(&listener3); 256 272 } 257 273 … … 287 303 EXPECT_TRUE(manager.acceptsOutput(level::verbose_more, context::unittest2())); 288 304 EXPECT_FALSE(manager.acceptsOutput(level::verbose_ultra, context::unittest2())); 305 306 manager.unregisterListener(&listener); 289 307 } 290 308 … … 302 320 303 321 manager.pushMessage(level::user_status, context::unittest1(), "some output"); 322 323 manager.unregisterListener(&listener); 304 324 } 305 325 … … 319 339 320 340 manager.pushMessage(level::user_status, context::unittest1(), "some output\nand some more output\n!!!"); 341 342 manager.unregisterListener(&listener); 321 343 } 322 344
Note: See TracChangeset
for help on using the changeset viewer.