[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / crypto / scoped_mock_unexportable_key_provider.h
1 // Copyright 2021 The Chromium Authors
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 // `ScopedNullUnexportableKeyProvider` causes `GetUnexportableKeyProvider` to
22 // return a nullptr, emulating the key provider not being supported.
23 class ScopedNullUnexportableKeyProvider {
24  public:
25   ScopedNullUnexportableKeyProvider();
26   ~ScopedNullUnexportableKeyProvider();
27 };
28
29 }  // namespace crypto
30
31 #endif  // CRYPTO_SCOPED_MOCK_UNEXPORTABLE_KEY_PROVIDER_H_