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

Unified Diff: chrome/browser/password_manager/password_store_proxy_mac_unittest.cc

Issue 2010463002: Mocker for OSCrypt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated doc Created 4 years, 7 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
Index: chrome/browser/password_manager/password_store_proxy_mac_unittest.cc
diff --git a/chrome/browser/password_manager/password_store_proxy_mac_unittest.cc b/chrome/browser/password_manager/password_store_proxy_mac_unittest.cc
index 996571e80412231b643933afff21f34313731bed..bb7339c68588d86d6d1879715a0d19fe502e6595 100644
--- a/chrome/browser/password_manager/password_store_proxy_mac_unittest.cc
+++ b/chrome/browser/password_manager/password_store_proxy_mac_unittest.cc
@@ -15,7 +15,7 @@
#include "chrome/browser/password_manager/password_store_mac.h"
#include "chrome/browser/password_manager/password_store_mac_internal.h"
#include "chrome/browser/prefs/browser_prefs.h"
-#include "components/os_crypt/os_crypt.h"
+#include "components/os_crypt/os_crypt_mocker.h"
#include "components/password_manager/core/browser/login_database.h"
#include "components/password_manager/core/browser/password_manager_test_utils.h"
#include "components/password_manager/core/browser/password_store_consumer.h"
@@ -140,7 +140,7 @@ PasswordStoreProxyMacTest::PasswordStoreProxyMacTest() {
static_cast<int>(GetParam()));
// Ensure that LoginDatabase will use the mock keychain if it needs to
// encrypt/decrypt a password.
- OSCrypt::UseMockKeychain(true);
+ OSCryptMocker::SetUpWithSingleton();
}
PasswordStoreProxyMacTest::~PasswordStoreProxyMacTest() {
@@ -154,6 +154,7 @@ void PasswordStoreProxyMacTest::SetUp() {
void PasswordStoreProxyMacTest::TearDown() {
ClosePasswordStore();
+ OSCryptMocker::TearDown();
}
void PasswordStoreProxyMacTest::CreateAndInitPasswordStore(

Powered by Google App Engine
This is Rietveld 408576698