~townsend/unity/fix-waiting-to-install

« back to all changes in this revision

Viewing changes to tests/test_glib_source.cpp

  • Committer: Chris Townsend
  • Date: 2013-07-17 16:24:40 UTC
  • mfrom: (3379.1.48 trunk)
  • Revision ID: christopher.townsend@canonical.com-20130717162440-zbeyzlbq0kdvnypo
MergeĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
  bool removed_called = false;
333
333
 
334
334
  {
335
 
  auto check_function = []() { return (callback_call_count > 1) ? true : false; };
 
335
  auto check_function = []() { return (callback_call_count > 1); };
336
336
  TimeoutSeconds timeout(1, &OnSourceCallbackContinue);
337
337
  timeout.removed.connect([&] (unsigned int id) { removed_called = true; });
338
338
  Utils::WaitUntil(check_function, true, 4);