blob: a2d72f9d927c21f0b9ebda2aa4f236e340f69156 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
#define BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
#include <lib/fidl/cpp/binding_set.h>
#include <lib/zx/channel.h>
#include "base/testfidl/cpp/fidl.h"
namespace base {
class TestInterfaceImpl : public testfidl::TestInterface {
public:
TestInterfaceImpl();
~TestInterfaceImpl() override;
// TestInterface implementation:
void Add(int32_t a, int32_t b, AddCallback callback) override;
fidl::BindingSet<testfidl::TestInterface>* bindings() { return &bindings_; }
private:
fidl::BindingSet<testfidl::TestInterface> bindings_;
};
} // namespace base
#endif // BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
|