test_interface_impl.h 852 B

12345678910111213141516171819202122232425262728293031
  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 BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
  5. #define BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
  6. #include <lib/fidl/cpp/binding_set.h>
  7. #include <lib/zx/channel.h>
  8. #include "base/testfidl/cpp/fidl.h"
  9. namespace base {
  10. class TestInterfaceImpl : public testfidl::TestInterface {
  11. public:
  12. TestInterfaceImpl();
  13. ~TestInterfaceImpl() override;
  14. // TestInterface implementation:
  15. void Add(int32_t a, int32_t b, AddCallback callback) override;
  16. fidl::BindingSet<testfidl::TestInterface>* bindings() { return &bindings_; }
  17. private:
  18. fidl::BindingSet<testfidl::TestInterface> bindings_;
  19. };
  20. } // namespace base
  21. #endif // BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_