fake_url_forwarder_configurator.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_HOST_REMOTE_OPEN_URL_FAKE_URL_FORWARDER_CONFIGURATOR_H_
  5. #define REMOTING_HOST_REMOTE_OPEN_URL_FAKE_URL_FORWARDER_CONFIGURATOR_H_
  6. #include "remoting/host/remote_open_url/url_forwarder_configurator.h"
  7. namespace remoting {
  8. // A fake UrlForwarderConfigurator implementation that responds with either
  9. // false or FAILED.
  10. class FakeUrlForwarderConfigurator final : public UrlForwarderConfigurator {
  11. public:
  12. FakeUrlForwarderConfigurator();
  13. ~FakeUrlForwarderConfigurator() override;
  14. void IsUrlForwarderSetUp(IsUrlForwarderSetUpCallback callback) override;
  15. void SetUpUrlForwarder(const SetUpUrlForwarderCallback& callback) override;
  16. FakeUrlForwarderConfigurator(const FakeUrlForwarderConfigurator&) = delete;
  17. FakeUrlForwarderConfigurator& operator=(const FakeUrlForwarderConfigurator&) =
  18. delete;
  19. };
  20. } // namespace remoting
  21. #endif // REMOTING_HOST_REMOTE_OPEN_URL_FAKE_URL_FORWARDER_CONFIGURATOR_H_