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.
5 #ifndef BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
6 #define BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
8 #include <lib/fidl/cpp/binding_set.h>
9 #include <lib/zx/channel.h>
11 #include "base/fuchsia/testfidl/cpp/fidl.h"
16 class TestInterfaceImpl : public testfidl::TestInterface {
19 ~TestInterfaceImpl() override;
21 // TestInterface implementation:
22 void Add(int32_t a, int32_t b, AddCallback callback) override;
24 fidl::BindingSet<testfidl::TestInterface>* bindings() { return &bindings_; }
27 fidl::BindingSet<testfidl::TestInterface> bindings_;
30 } // namespace fuchsia
33 #endif // BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_