// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_ASH_COMPONENTS_DBUS_CUPS_PROXY_FAKE_CUPS_PROXY_CLIENT_H_
#define CHROMEOS_ASH_COMPONENTS_DBUS_CUPS_PROXY_FAKE_CUPS_PROXY_CLIENT_H_
#include "base/files/scoped_file.h"
#include "base/functional/callback_forward.h"
#include "chromeos/ash/components/dbus/cups_proxy/cups_proxy_client.h"
#include "dbus/object_proxy.h"
namespace ash {
// Fake implementation of CupsProxyClient. This is currently a no-op fake.
class FakeCupsProxyClient : public CupsProxyClient {
public:
FakeCupsProxyClient();
FakeCupsProxyClient(const FakeCupsProxyClient&) = delete;
FakeCupsProxyClient& operator=(const FakeCupsProxyClient&) = delete;
~FakeCupsProxyClient() override;
// CupsProxyClient:
void WaitForServiceToBeAvailable(
dbus::ObjectProxy::WaitForServiceToBeAvailableCallback callback) override;
void BootstrapMojoConnection(
base::ScopedFD fd,
base::OnceCallback<void(bool success)> result_callback) override;
};
} // namespace ash
#endif // CHROMEOS_ASH_COMPONENTS_DBUS_CUPS_PROXY_FAKE_CUPS_PROXY_CLIENT_H_