Google is doing some pretty fine work in the courts to establish "freedom".
Google being an information company is kind of aligned with sensible fair-use laws, reasonable and common sense interpretations of various laws and have the financial backing to do it in the courts with great legal counsel.
The Oracle thing is one example. Google has fought RIAA/MPAA silly wannabee interpretations of copyright in relationship to YouTube. Obviously they have been to the courthouses several times on things like "fair use" or how linking to files or within a web site is just part of the internet.
The deal going on with Oracle is a bit silly, a programming language is not a creative work and if it is, what about compilers
Either way, Google is getting some great case-law into at least the US legal system. I can't say I know too much about silliness it has had to deal with in Europe. Same story with Wikipedia helping more sensible interpretations of law and establishing precedent. Google does have financial incentive for reasonable interpretations of IP law, obviously, but they keep moving the bar forward and with a great deal of case-law established, judges have existing legal decisions they can look to for guidance.