The search giant has been a leader in testing autonomous vehicles on public roads, prompting traditional carmakers to step up their self-driving plans.