scoped_mock_unexportable_key_provider.h 760 B

1234567891011121314151617181920212223
  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. #ifndef CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_
  5. #define CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_
  6. namespace crypto {
  7. // ScopedMockUnexportableKeyProvider causes
  8. // |GetUnexportableKeyProvider| to return a mock, software-based
  9. // implementation of |UnexportableKeyProvider| while it is in scope.
  10. //
  11. // This needs you to link against the test_support target.
  12. class ScopedMockUnexportableKeyProvider {
  13. public:
  14. ScopedMockUnexportableKeyProvider();
  15. ~ScopedMockUnexportableKeyProvider();
  16. };
  17. } // namespace crypto
  18. #endif // CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_