diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2022-02-22 09:03:39 +1100 |
---|---|---|
committer | ThiƩbaud Weksteen <tweek@google.com> | 2022-02-27 23:39:46 +0000 |
commit | c70490a726d82cc9318669603202526c514a61c8 (patch) | |
tree | 7232bdbe8c93f78a36b737f10c2e04c06550029f /tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl | |
parent | a30ec393e7c176a515f1cda096bc2b6628a3ddd4 (diff) | |
download | aidl-c70490a726d82cc9318669603202526c514a61c8.tar.gz |
Error for cpp, ndk and rust on permission checks
The permission checks are not yet implemented for the cpp, ndk or rust
backend. Ensure that we generate an error that will trip the compiler to
avoid generating code without the checks.
Bug: 218914259
Test: Enable backends for aidl-test-interface-permission; observe error
in building the code
Change-Id: If401c84c9bd2db06ebceb04802d4f388c7732682
Diffstat (limited to 'tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl')
6 files changed, 0 insertions, 189 deletions
diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BnProtected.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BnProtected.h deleted file mode 100644 index 82340aa1..00000000 --- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BnProtected.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include <binder/IInterface.h> -#include <android/aidl/tests/permission/IProtected.h> - -namespace android { -namespace aidl { -namespace tests { -namespace permission { -class BnProtected : public ::android::BnInterface<IProtected> { -public: - static constexpr uint32_t TRANSACTION_PermissionProtected = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; - static constexpr uint32_t TRANSACTION_MultiplePermissionsAll = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; - static constexpr uint32_t TRANSACTION_MultiplePermissionsAny = ::android::IBinder::FIRST_CALL_TRANSACTION + 2; - explicit BnProtected(); - ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; -}; // class BnProtected - -class IProtectedDelegator : public BnProtected { -public: - explicit IProtectedDelegator(::android::sp<IProtected> &impl) : _aidl_delegate(impl) {} - - ::android::binder::Status PermissionProtected() override { - return _aidl_delegate->PermissionProtected(); - } - ::android::binder::Status MultiplePermissionsAll() override { - return _aidl_delegate->MultiplePermissionsAll(); - } - ::android::binder::Status MultiplePermissionsAny() override { - return _aidl_delegate->MultiplePermissionsAny(); - } -private: - ::android::sp<IProtected> _aidl_delegate; -}; // class IProtectedDelegator -} // namespace permission -} // namespace tests -} // namespace aidl -} // namespace android diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BnProtectedInterface.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BnProtectedInterface.h deleted file mode 100644 index 7516a172..00000000 --- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BnProtectedInterface.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <binder/IInterface.h> -#include <android/aidl/tests/permission/IProtectedInterface.h> - -namespace android { -namespace aidl { -namespace tests { -namespace permission { -class BnProtectedInterface : public ::android::BnInterface<IProtectedInterface> { -public: - static constexpr uint32_t TRANSACTION_Method1 = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; - static constexpr uint32_t TRANSACTION_Method2 = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; - explicit BnProtectedInterface(); - ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; -}; // class BnProtectedInterface - -class IProtectedInterfaceDelegator : public BnProtectedInterface { -public: - explicit IProtectedInterfaceDelegator(::android::sp<IProtectedInterface> &impl) : _aidl_delegate(impl) {} - - ::android::binder::Status Method1() override { - return _aidl_delegate->Method1(); - } - ::android::binder::Status Method2() override { - return _aidl_delegate->Method2(); - } -private: - ::android::sp<IProtectedInterface> _aidl_delegate; -}; // class IProtectedInterfaceDelegator -} // namespace permission -} // namespace tests -} // namespace aidl -} // namespace android diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BpProtected.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BpProtected.h deleted file mode 100644 index fa83ef0f..00000000 --- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BpProtected.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include <binder/IBinder.h> -#include <binder/IInterface.h> -#include <utils/Errors.h> -#include <android/aidl/tests/permission/IProtected.h> - -namespace android { -namespace aidl { -namespace tests { -namespace permission { -class BpProtected : public ::android::BpInterface<IProtected> { -public: - explicit BpProtected(const ::android::sp<::android::IBinder>& _aidl_impl); - virtual ~BpProtected() = default; - ::android::binder::Status PermissionProtected() override; - ::android::binder::Status MultiplePermissionsAll() override; - ::android::binder::Status MultiplePermissionsAny() override; -}; // class BpProtected -} // namespace permission -} // namespace tests -} // namespace aidl -} // namespace android diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BpProtectedInterface.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BpProtectedInterface.h deleted file mode 100644 index c77b59a1..00000000 --- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/BpProtectedInterface.h +++ /dev/null @@ -1,22 +0,0 @@ -#pragma once - -#include <binder/IBinder.h> -#include <binder/IInterface.h> -#include <utils/Errors.h> -#include <android/aidl/tests/permission/IProtectedInterface.h> - -namespace android { -namespace aidl { -namespace tests { -namespace permission { -class BpProtectedInterface : public ::android::BpInterface<IProtectedInterface> { -public: - explicit BpProtectedInterface(const ::android::sp<::android::IBinder>& _aidl_impl); - virtual ~BpProtectedInterface() = default; - ::android::binder::Status Method1() override; - ::android::binder::Status Method2() override; -}; // class BpProtectedInterface -} // namespace permission -} // namespace tests -} // namespace aidl -} // namespace android diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/IProtected.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/IProtected.h deleted file mode 100644 index d8b05b96..00000000 --- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/IProtected.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include <binder/IBinder.h> -#include <binder/IInterface.h> -#include <binder/Status.h> -#include <utils/StrongPointer.h> - -namespace android { -namespace aidl { -namespace tests { -namespace permission { -class IProtected : public ::android::IInterface { -public: - DECLARE_META_INTERFACE(Protected) - virtual ::android::binder::Status PermissionProtected() = 0; - virtual ::android::binder::Status MultiplePermissionsAll() = 0; - virtual ::android::binder::Status MultiplePermissionsAny() = 0; -}; // class IProtected - -class IProtectedDefault : public IProtected { -public: - ::android::IBinder* onAsBinder() override { - return nullptr; - } - ::android::binder::Status PermissionProtected() override { - return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); - } - ::android::binder::Status MultiplePermissionsAll() override { - return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); - } - ::android::binder::Status MultiplePermissionsAny() override { - return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); - } -}; // class IProtectedDefault -} // namespace permission -} // namespace tests -} // namespace aidl -} // namespace android diff --git a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/IProtectedInterface.h b/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/IProtectedInterface.h deleted file mode 100644 index 82aaceb2..00000000 --- a/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/permission/IProtectedInterface.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <binder/IBinder.h> -#include <binder/IInterface.h> -#include <binder/Status.h> -#include <utils/StrongPointer.h> - -namespace android { -namespace aidl { -namespace tests { -namespace permission { -class IProtectedInterface : public ::android::IInterface { -public: - DECLARE_META_INTERFACE(ProtectedInterface) - virtual ::android::binder::Status Method1() = 0; - virtual ::android::binder::Status Method2() = 0; -}; // class IProtectedInterface - -class IProtectedInterfaceDefault : public IProtectedInterface { -public: - ::android::IBinder* onAsBinder() override { - return nullptr; - } - ::android::binder::Status Method1() override { - return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); - } - ::android::binder::Status Method2() override { - return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); - } -}; // class IProtectedInterfaceDefault -} // namespace permission -} // namespace tests -} // namespace aidl -} // namespace android |