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

Unified Diff: chrome/browser/chromeos/login/quick_unlock/fingerprint_storage_unittest.cc

Issue 2815733003: cros: Add PinStorageProvider enum which describes pin backend in use. (Closed)
Patch Set: Address comments Created 3 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/chromeos/login/quick_unlock/fingerprint_storage_unittest.cc
diff --git a/chrome/browser/chromeos/login/quick_unlock/fingerprint_storage_unittest.cc b/chrome/browser/chromeos/login/quick_unlock/fingerprint_storage_unittest.cc
index 600dd230907cf4fc0d73927a162a1059924a1dcc..0c521f8e8dbfdc74db7514a992f408d7438e6a99 100644
--- a/chrome/browser/chromeos/login/quick_unlock/fingerprint_storage_unittest.cc
+++ b/chrome/browser/chromeos/login/quick_unlock/fingerprint_storage_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/chromeos/login/quick_unlock/fingerprint_storage.h"
#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_factory.h"
#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_storage.h"
#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h"
@@ -16,11 +17,13 @@ namespace {
class FingerprintStorageUnitTest : public testing::Test {
protected:
- FingerprintStorageUnitTest() : profile_(new TestingProfile()) {}
+ FingerprintStorageUnitTest() : profile_(base::MakeUnique<TestingProfile>()) {}
~FingerprintStorageUnitTest() override {}
// testing::Test:
- void SetUp() override { quick_unlock::EnableForTesting(); }
+ void SetUp() override {
+ quick_unlock::EnableForTesting(quick_unlock::PinStorageType::kPrefs);
+ }
void SetRecords(int records_number) {
profile_->GetPrefs()->SetInteger(prefs::kQuickUnlockFingerprintRecord,

Powered by Google App Engine
This is Rietveld 408576698