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 #ifndef COMPONENTS_OS_CRYPT_OS_CRYPT_MOCKER_H_ |
| 6 #define COMPONENTS_OS_CRYPT_OS_CRYPT_MOCKER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 // Holds and serves a password from memory. |
| 11 class OSCryptMocker { |
| 12 public: |
| 13 // Inject mocking into OSCrypt. |
| 14 static void SetUpWithSingleton(); |
| 15 |
| 16 // Restore OSCrypt to its real behaviour. |
| 17 static void TearDown(); |
| 18 |
| 19 private: |
| 20 DISALLOW_COPY_AND_ASSIGN(OSCryptMocker); |
| 21 }; |
| 22 |
| 23 #endif // COMPONENTS_OS_CRYPT_OS_CRYPT_MOCKER_H_ |
OLD | NEW |