Upload upstream chromium 76.0.3809.146
[platform/framework/web/chromium-efl.git] / base / fuchsia / test_interface_impl.h
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
5 #ifndef BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
6 #define BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
7
8 #include <lib/fidl/cpp/binding_set.h>
9 #include <lib/zx/channel.h>
10
11 #include "base/fuchsia/testfidl/cpp/fidl.h"
12
13 namespace base {
14 namespace fuchsia {
15
16 class TestInterfaceImpl : public testfidl::TestInterface {
17  public:
18   TestInterfaceImpl();
19   ~TestInterfaceImpl() override;
20
21   // TestInterface implementation:
22   void Add(int32_t a, int32_t b, AddCallback callback) override;
23
24   fidl::BindingSet<testfidl::TestInterface>* bindings() { return &bindings_; }
25
26  private:
27   fidl::BindingSet<testfidl::TestInterface> bindings_;
28 };
29
30 }  // namespace fuchsia
31 }  // namespace base
32
33 #endif  // BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_