platform_hardware_interfaces/tests/libhwbinder/1.0/default/Benchmark.cpp
Zhuoyao Zhang eb9f507823 Add implementation for hwbinder benchmark service.
Bug:32279499
Test: make android.hardware.tests.libhwbinder@1.0-impl
Change-Id: I75056afa32b8189020608779ec495659ea35ed48
2016-10-21 13:22:12 -07:00

28 lines
601 B
C++

#define LOG_TAG "libhwbinder_benchmark"
#include "Benchmark.h"
namespace android {
namespace hardware {
namespace tests {
namespace libhwbinder {
namespace V1_0 {
namespace implementation {
Return<void> Benchmark::sendVec(
const ::android::hardware::hidl_vec<uint8_t>& data,
sendVec_cb _hidl_cb) {
_hidl_cb(data);
return Void();
}
IBenchmark* HIDL_FETCH_IBenchmark(const char* /* name */) {
return new Benchmark();
}
} // namespace implementation
} // namespace V1_0
} // namespace libhwbinder
} // namespace tests
} // namespace hardware
} // namespace android