单项选择题

She was quite sure that she ________ the door before she left the office.

A.will lock
B.would lock
C.has locked
D.had locked