Fixed failing unittests.
Fixed failing unittests.

Some tests were explicitly setting the last error that an expected mock method would have set in the real world, but some code in the mean time can reset it to zero, so we now set the error code as part of the mocked expectation using testing::Invoke.

BUG=None
Test=Make sure the unit tests always succeed.

Review URL: http://codereview.chromium.org/4646002

git-svn-id: http://src.chromium.org/svn/trunk/src@65400 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: ba5ca8dc67b5c13434af61c9630fe0c0b4318bd4
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser