| Index: components/os_crypt/os_crypt_unittest.cc
|
| diff --git a/components/os_crypt/os_crypt_unittest.cc b/components/os_crypt/os_crypt_unittest.cc
|
| index 9837cbc29a0d8d1725056fdd79006e3e9e54e2ed..d3861d10c407e9adb500b7a643e002ae76e95792 100644
|
| --- a/components/os_crypt/os_crypt_unittest.cc
|
| +++ b/components/os_crypt/os_crypt_unittest.cc
|
| @@ -11,19 +11,16 @@
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "build/build_config.h"
|
| +#include "components/os_crypt/os_crypt_mocker.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| namespace {
|
|
|
| class OSCryptTest : public testing::Test {
|
| public:
|
| - OSCryptTest() {}
|
| + OSCryptTest() { OSCryptMocker::SetUpWithSingleton(); }
|
|
|
| - void SetUp() override {
|
| -#if defined(OS_MACOSX)
|
| - OSCrypt::UseMockKeychain(true);
|
| -#endif
|
| - }
|
| + ~OSCryptTest() override { OSCryptMocker::TearDown(); }
|
|
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(OSCryptTest);
|
|
|