blob: e08fcc192c5d394b44a8d91dd3f81fb70b592c6a [file] [log] [blame]
#pragma once
#include "aidl/android/aidl/tests/IOldName.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 BnOldName : public ::ndk::BnCInterface<IOldName> {
public:
BnOldName();
virtual ~BnOldName();
protected:
::ndk::SpAIBinder createBinder() override;
private:
};
class IOldNameDelegator : public BnOldName {
public:
explicit IOldNameDelegator(const std::shared_ptr<IOldName> &impl) : _impl(impl) {
}
::ndk::ScopedAStatus RealName(std::string* _aidl_return) override {
return _impl->RealName(_aidl_return);
}
protected:
private:
std::shared_ptr<IOldName> _impl;
};
} // namespace tests
} // namespace aidl
} // namespace android
} // namespace aidl