| 319 | } |
| 320 | |
| 321 | void Sync( const wxString &string ) |
| 322 | { |
| 323 | if ( IsRecording() || IsReplaying() ) { |
| 324 | if ( IsRecording() ) |
| 325 | Output( string ); |
| 326 | if ( IsReplaying() ) { |
| 327 | if (sFileIn.Eof() || sLine != string) |
| 328 | { |
| 329 | throw SyncException(wxString::Format( |
| 330 | "sync failed. Expected '%s', got '%s'", |
| 331 | string.ToStdString().c_str(), sLine.ToStdString().c_str())); |
| 332 | } |
| 333 | |
| 334 | NextIn(); |
| 335 | } |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | void Sync( const wxArrayString &strings ) |
| 340 | { |
no test coverage detected