Ответ:

1. He **had been playing** tennis for an hour before she came.