blob: 953a900f3d0f1940076ff4fae0229240a135f69e [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_ATTESTATION_MOCK_MACHINE_CERTIFICATE_UPLOADER_H_
#define CHROME_BROWSER_ASH_ATTESTATION_MOCK_MACHINE_CERTIFICATE_UPLOADER_H_
#include "base/macros.h"
#include "chrome/browser/ash/attestation/machine_certificate_uploader.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace ash {
namespace attestation {
class MockMachineCertificateUploader : public MachineCertificateUploader {
public:
MockMachineCertificateUploader();
~MockMachineCertificateUploader();
MOCK_METHOD1(UploadCertificateIfNeeded, void(UploadCallback));
MOCK_METHOD1(RefreshAndUploadCertificate, void(UploadCallback));
MOCK_METHOD1(WaitForUploadComplete, void(UploadCallback));
private:
DISALLOW_COPY_AND_ASSIGN(MockMachineCertificateUploader);
};
} // namespace attestation
} // namespace ash
// TODO(https://crbug.com/1164001): remove after //chrome/browser/chromeos
// source migration is finished.
namespace chromeos {
namespace attestation {
using ::ash::attestation::MockMachineCertificateUploader;
} // namespace attestation
} // namespace chromeos
#endif // CHROME_BROWSER_ASH_ATTESTATION_MOCK_MACHINE_CERTIFICATE_UPLOADER_H_