blob: f86d1c97117d4a930b4dd7021ea502aebf50ae1d [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_SERVICES_CUPS_PROXY_FAKE_CUPS_PROXY_SERVICE_DELEGATE_H_
#define CHROME_SERVICES_CUPS_PROXY_FAKE_CUPS_PROXY_SERVICE_DELEGATE_H_
#include <memory>
#include <string>
#include <vector>
#include "chrome/services/cups_proxy/cups_proxy_service_delegate.h"
#include "chromeos/printing/printer_configuration.h"
namespace cups_proxy {
// Fake implementation for use in unit_tests.
class FakeCupsProxyServiceDelegate : public CupsProxyServiceDelegate {
public:
FakeCupsProxyServiceDelegate() = default;
~FakeCupsProxyServiceDelegate() override = default;
// CupsProxyServiceDelegate overrides.
std::vector<chromeos::Printer> GetPrinters() override;
base::Optional<chromeos::Printer> GetPrinter(const std::string& id) override;
bool IsPrinterInstalled(const chromeos::Printer& printer) override;
scoped_refptr<base::SingleThreadTaskRunner> GetIOTaskRunner() override;
void SetupPrinter(const chromeos::Printer& printer,
SetupPrinterCallback cb) override;
};
} // namespace cups_proxy
#endif // CHROME_SERVICES_CUPS_PROXY_FAKE_CUPS_PROXY_SERVICE_DELEGATE_H_