| Index: components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| diff --git a/components/autofill/core/browser/webdata/autofill_table_unittest.cc b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| index 5243b1a09332a9cc426aab5fc9a36f6094efea67..58e2cddb9ad69805a4c73cc7e5033c4b4a65b49f 100644
|
| --- a/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| +++ b/components/autofill/core/browser/webdata/autofill_table_unittest.cc
|
| @@ -4,6 +4,9 @@
|
|
|
| #include <stddef.h>
|
|
|
| +#include <map>
|
| +#include <set>
|
| +#include <string>
|
| #include <tuple>
|
| #include <utility>
|
| #include <vector>
|
| @@ -31,7 +34,7 @@
|
| #include "components/autofill/core/common/autofill_switches.h"
|
| #include "components/autofill/core/common/autofill_util.h"
|
| #include "components/autofill/core/common/form_field_data.h"
|
| -#include "components/os_crypt/os_crypt.h"
|
| +#include "components/os_crypt/os_crypt_mocker.h"
|
| #include "components/webdata/common/web_database.h"
|
| #include "sql/statement.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -123,9 +126,7 @@ class AutofillTableTest : public testing::Test {
|
|
|
| protected:
|
| void SetUp() override {
|
| -#if defined(OS_MACOSX)
|
| - OSCrypt::UseMockKeychain(true);
|
| -#endif
|
| + OSCryptMocker::SetUpWithSingleton();
|
| ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
|
| file_ = temp_dir_.path().AppendASCII("TestWebDatabase");
|
|
|
| @@ -135,6 +136,8 @@ class AutofillTableTest : public testing::Test {
|
| ASSERT_EQ(sql::INIT_OK, db_->Init(file_));
|
| }
|
|
|
| + void TearDown() override { OSCryptMocker::TearDown(); }
|
| +
|
| base::FilePath file_;
|
| base::ScopedTempDir temp_dir_;
|
| std::unique_ptr<AutofillTable> table_;
|
|
|