Adam Langley | 979ee87 | 2021-03-12 02:47:19 | [diff] [blame] | 1 | // Copyright (c) 2021 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 CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_ |
| 6 | #define CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_ |
| 7 | |
| 8 | namespace crypto { |
| 9 | |
| 10 | // ScopedMockUnexportableKeyProvider causes |
| 11 | // |GetUnexportableKeyProvider| to return a mock, software-based |
| 12 | // implementation of |UnexportableKeyProvider| while it is in scope. |
| 13 | // |
| 14 | // This needs you to link against the test_support target. |
| 15 | class ScopedMockUnexportableKeyProvider { |
| 16 | public: |
| 17 | ScopedMockUnexportableKeyProvider(); |
| 18 | ~ScopedMockUnexportableKeyProvider(); |
| 19 | }; |
| 20 | |
| 21 | } // namespace crypto |
| 22 | |
| 23 | #endif // CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_ |