| 222 | }; |
| 223 | |
| 224 | void validate(const float expected_x, const float actual_x, |
| 225 | const float expected_y, const float actual_y, |
| 226 | const int key, bool& valid) |
| 227 | { |
| 228 | if (expected_x != actual_x || expected_y != actual_y) { |
| 229 | valid = false; |
| 230 | ACE_ERROR((LM_ERROR, |
| 231 | ACE_TEXT("%N:%l validate()") |
| 232 | ACE_TEXT(" ERROR: for key %d received sample x=%f y=%f") |
| 233 | ACE_TEXT(" but expected x=%f y=%f!\n"), |
| 234 | key, actual_x, actual_y, expected_x, expected_y)); |
| 235 | } |
| 236 | else { |
| 237 | ACE_DEBUG((LM_DEBUG, ACE_TEXT("%N:%l validate() - ") |
| 238 | ACE_TEXT("received message with key %d received sample x=%f y=%f\n"), |
| 239 | key, actual_x, actual_y)); |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | bool verify_unreliable(const size_t expected_samples, SampleMap& rcvd_samples) |
| 244 | { |
no outgoing calls
no test coverage detected