Fact: In Portal 2, it is stated that GLaDOS is motivated toward test completion by pleasure centers that activate upon doing science
Fact: When Wheatley is in control of her mainframe, he is overwhelmed by the pleasure centers
Conclusion: Arrested for Horny on Mainframe