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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover_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/browsing_data/browsing_data_remover_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
index 36cbfe205e3ac884b602e2241551da2824b7d6fe..9ff9778e03767181d808cae80af3672982a8654d 100644
--- a/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_remover_unittest.cc
@@ -58,6 +58,7 @@
#include "components/favicon/core/favicon_service.h"
#include "components/history/core/browser/history_service.h"
#include "components/omnibox/browser/omnibox_pref_names.h"
+#include "components/os_crypt/os_crypt_mocker.h"
#include "components/password_manager/core/browser/mock_password_store.h"
#include "components/password_manager/core/browser/password_manager_test_utils.h"
#include "components/password_manager/core/browser/password_store_consumer.h"
@@ -681,6 +682,7 @@ class RemoveAutofillTester : public autofill::PersonalDataManagerObserver {
~RemoveAutofillTester() override {
personal_data_manager_->RemoveObserver(this);
+ autofill::test::ReenableSystemServices();
}
// Returns true if there are autofill profiles.
@@ -978,8 +980,12 @@ class RemovePasswordsTester {
PasswordStoreFactory::GetInstance()
->GetForProfile(testing_profile, ServiceAccessType::EXPLICIT_ACCESS)
.get());
+
+ OSCryptMocker::SetUpWithSingleton();
}
+ ~RemovePasswordsTester() { OSCryptMocker::TearDown(); }
+
password_manager::MockPasswordStore* store() { return store_; }
private:

Powered by Google App Engine
This is Rietveld 408576698