OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/os_crypt/os_crypt_mocker.h" |
| 6 |
| 7 #include "components/os_crypt/os_crypt.h" |
| 8 |
| 9 // static |
| 10 void OSCryptMocker::SetUpWithSingleton() { |
| 11 #if defined(OS_MACOSX) |
| 12 OSCrypt::UseMockKeychain(true); |
| 13 #endif |
| 14 } |
| 15 |
| 16 // static |
| 17 void OSCryptMocker::TearDown() { |
| 18 #if defined(OS_MACOSX) |
| 19 OSCrypt::UseMockKeychain(false); |
| 20 #endif |
| 21 } |
OLD | NEW |