aboutsummaryrefslogtreecommitdiff
path: root/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/BnCircular.h
blob: 7595f616e4e71e8adf785a5b224bd0fc59065576 (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
32
33
34
35
36
37
38
39
40
41
42
#pragma once

#include "aidl/android/aidl/tests/ICircular.h"

#include <android/binder_ibinder.h>
#include <cassert>

#ifndef __BIONIC__
#ifndef __assert2
#define __assert2(a,b,c,d) ((void)0)
#endif
#endif

namespace aidl {
namespace android {
namespace aidl {
namespace tests {
class BnCircular : public ::ndk::BnCInterface<ICircular> {
public:
  BnCircular();
  virtual ~BnCircular();
protected:
  ::ndk::SpAIBinder createBinder() override;
private:
};
class ICircularDelegator : public BnCircular {
public:
  explicit ICircularDelegator(const std::shared_ptr<ICircular> &impl) : _impl(impl) {
  }

  ::ndk::ScopedAStatus GetTestService(std::shared_ptr<::aidl::android::aidl::tests::ITestService>* _aidl_return) override {
    return _impl->GetTestService(_aidl_return);
  }
protected:
private:
  std::shared_ptr<ICircular> _impl;
};

}  // namespace tests
}  // namespace aidl
}  // namespace android
}  // namespace aidl