Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: chrome/browser/chromeos/login/google_authenticator_unittest.cc

Issue 1251001: Fixed loader issue in unit tests caused by some test not using that mock and ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/cros_library.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/google_authenticator_unittest.cc
===================================================================
--- chrome/browser/chromeos/login/google_authenticator_unittest.cc (revision 42415)
+++ chrome/browser/chromeos/login/google_authenticator_unittest.cc (working copy)
@@ -67,6 +67,11 @@
// Tears down the test fixture.
virtual void TearDown() {
+ // Prevent bogus gMock leak check from firing.
+ chromeos::CrosLibrary::TestApi* test_api =
+ chromeos::CrosLibrary::Get()->GetTestApi();
+ test_api->SetLibraryLoader(NULL);
+ test_api->SetCryptohomeLibrary(NULL);
}
unsigned char fake_hash_[32];
« no previous file with comments | « chrome/browser/chromeos/cros/cros_library.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698