| Index: components/os_crypt/os_crypt_mocker.cc
|
| diff --git a/components/os_crypt/os_crypt_mocker.cc b/components/os_crypt/os_crypt_mocker.cc
|
| index 415773a89b09b84c269d6ee12445df4c14cf24e4..dd160cbaf5396d2fbe0c36c3c4c4381b78c24f6e 100644
|
| --- a/components/os_crypt/os_crypt_mocker.cc
|
| +++ b/components/os_crypt/os_crypt_mocker.cc
|
| @@ -6,10 +6,16 @@
|
|
|
| #include "components/os_crypt/os_crypt.h"
|
|
|
| +#if defined(USE_LIBSECRET)
|
| +#include "components/os_crypt/os_crypt_mocker_linux.h"
|
| +#endif
|
| +
|
| // static
|
| void OSCryptMocker::SetUpWithSingleton() {
|
| #if defined(OS_MACOSX)
|
| OSCrypt::UseMockKeychain(true);
|
| +#elif defined(USE_LIBSECRET)
|
| + OSCryptMockerLinux::SetUpWithSingleton();
|
| #endif
|
| }
|
|
|
| @@ -17,5 +23,7 @@ void OSCryptMocker::SetUpWithSingleton() {
|
| void OSCryptMocker::TearDown() {
|
| #if defined(OS_MACOSX)
|
| OSCrypt::UseMockKeychain(false);
|
| +#elif defined(USE_LIBSECRET)
|
| + OSCryptMockerLinux::TearDown();
|
| #endif
|
| }
|
|
|