diff options
author | Robert Quattlebaum <rquattle@google.com> | 2017-07-18 12:18:58 -0700 |
---|---|---|
committer | Robert Quattlebaum <rquattle@google.com> | 2017-07-18 12:25:52 -0700 |
commit | e6a1be5f36c91c12ba89bca99233bdb9d7b448e0 (patch) | |
tree | 6aa83f202600cf75d6a27bca41ca63393bca6432 /libandroid_net_lowpan/tests/jni/LowpanBeaconInfoTest.h | |
parent | d38415634a6e0d2175e888618a6ebc52dfcb861e (diff) | |
download | lowpan-e6a1be5f36c91c12ba89bca99233bdb9d7b448e0.tar.gz |
libandroid_net_lowpan: Reintroduce new unit tests for data classesoreo-mr1-dev
This change introduces new unit tests which confirm that various data
classes are being property marshalled between their Java and C++
implementations.
This was originally added to platform/frameworks/base via change id
I41d590b1e77dc41873c4b9e9bf1b7f1bf859f74e, but that change was
reverted (via ag/2553741) due the failure of build 4190632 on the
branch `git_wear-master`. Moving these specific tests into this
repository avoids this failure case.
This change is dependent on the following change id:
I70fe6be8d71424e11a537daaa69c3f6cfae8e49d
Bug: b/63707448 b/63708348
Change-Id: I41d590b1e77dc41873c4b9e9bf1b7f1bf859f74e
Test: These tests both compile and pass
Diffstat (limited to 'libandroid_net_lowpan/tests/jni/LowpanBeaconInfoTest.h')
-rw-r--r-- | libandroid_net_lowpan/tests/jni/LowpanBeaconInfoTest.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libandroid_net_lowpan/tests/jni/LowpanBeaconInfoTest.h b/libandroid_net_lowpan/tests/jni/LowpanBeaconInfoTest.h new file mode 100644 index 0000000..1ba8eaf --- /dev/null +++ b/libandroid_net_lowpan/tests/jni/LowpanBeaconInfoTest.h @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _ANDROID_NET_LOWPANBEACONINFOTEST_H_ +#define _ANDROID_NET_LOWPANBEACONINFOTEST_H_ + +#include <jni.h> +#include <android/net/lowpan/LowpanBeaconInfo.h> + +extern "C" +JNIEXPORT jbyteArray Java_android_net_lowpan_LowpanBeaconInfoTest_readAndWriteNative(JNIEnv* env, jclass, + jbyteArray inParcel); + +#endif // _ANDROID_NET_LOWPANBEACONINFOTEST_H_ |