A Google lawyer testified on Tuesday that the software maker, pursuant to its contractual obligations, agreed to take over defense of some of the claims in Apple’s current patent lawsuit as well as to indemnify Samsung should it lose on those claims.

Apple played deposition testimony from Google lawyer James Maccoun, who verified emails in which Google agreed to provide partial or full indemnity with regard to four patents as well as to take over defense of those claims.