1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ash / components / arc / test / fake_cert_manager.h [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/components/arc/net/cert_manager.h"
#ifndef ASH_COMPONENTS_ARC_TEST_FAKE_CERT_MANAGER_H_
#define ASH_COMPONENTS_ARC_TEST_FAKE_CERT_MANAGER_H_
namespace arc {
// A fake CertManager that fakes method to import private key and cert.
class FakeCertManager : public CertManager {
public:
~FakeCertManager() override = default;
void ImportPrivateKeyAndCert(
const std::string& key_pem,
const std::string& cert_pem,
ImportPrivateKeyAndCertCallback callback) override {}
};
} // namespace arc
#endif // ASH_COMPONENTS_ARC_TEST_FAKE_CERT_MANAGER_H_