Gov. Jerry Brown rode to Google headquarters in a self-driving vehicle before signing legislation that will establish safety and performance regulations to test and operate autonomous vehicles on state roads and highways.