~ps-jenkins/grail/latestsnapshot

« back to all changes in this revision

Viewing changes to test/regular/intermittent_3touch.cpp

  • Committer: Tarmac
  • Author(s): Daniel d'Andrada
  • Date: 2012-12-06 18:45:41 UTC
  • mfrom: (247.2.5 convert_tests)
  • Revision ID: tarmac-20121206184541-7sarcnykiy3so4vv
Get rid of x11 specific code in grail implementation.

That way grail can be compiled with x11 dependencies and still process correctly frames that were generated via frame_backend.h instead of frame_x11.h.

Also use frame_backend.h instead of a frame mock in tests, which is a more realistic situation and also exercises the frame_backend.h API. It wouldn't be possible to do that if grail implementation still had frame_x11_* calls.

Approved by Stephen M. Webb.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
  SendDeviceAddedEvent(time);
26
26
 
27
27
  UGSubscription subscription =
28
 
    CreateSubscription(3, UGGestureTypeTouch, device_ptr.get(), fake_window_id);
 
28
    CreateSubscription(3, UGGestureTypeTouch, fake_window_id);
29
29
  if (!subscription) return;
30
30
 
31
31
  time = 20531903;