empty_local_interface_provider.h 907 B

123456789101112131415161718192021222324
  1. // Copyright 2018 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 COMPONENTS_SPELLCHECK_RENDERER_EMPTY_LOCAL_INTERFACE_PROVIDER_H_
  5. #define COMPONENTS_SPELLCHECK_RENDERER_EMPTY_LOCAL_INTERFACE_PROVIDER_H_
  6. #include "services/service_manager/public/cpp/local_interface_provider.h"
  7. namespace spellcheck {
  8. // A dummy LocalInterfaceProvider that doesn't bind any remote application.
  9. // May require a base::test::TaskEnvironment if GetInterface() is expected
  10. // to be called.
  11. class EmptyLocalInterfaceProvider
  12. : public service_manager::LocalInterfaceProvider {
  13. public:
  14. void GetInterface(const std::string& name,
  15. mojo::ScopedMessagePipeHandle request_handle) override;
  16. };
  17. } // namespace spellcheck
  18. #endif // COMPONENTS_SPELLCHECK_RENDERER_EMPTY_LOCAL_INTERFACE_PROVIDER_H_