As a candidate, I would drop out of the interview process if I knew this was being used. This level of mistrust doesn't bode well for my future employer. As an employer, I don't care if someone cheats. In the context of programming and software engineering, I want to know that they explain the solution to the problem well and thoughtfully answer my questions. At the end of the day, we all cheat on the job!