By the time the student pilot and instructor taxiing in the Cessna 172 had switched from ground control to the tower frequency for their takeoff clearance, takeoff instructions were already being issued by the tower controller.
Source: aopaTraining Tip: Anatomy of an incursion