add default implementation to android.hardware.tests.foo/bar/pointer@1.0
Test: hidl_test
Test: mma
Change-Id: I808423c040099354513db0ad108210fcec17c8a7
diff --git a/tests/pointer/1.0/default/Graph.h b/tests/pointer/1.0/default/Graph.h
new file mode 100644
index 0000000..cbd5a8a
--- /dev/null
+++ b/tests/pointer/1.0/default/Graph.h
@@ -0,0 +1,47 @@
+#ifndef HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Graph_H_
+#define HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Graph_H_
+
+#include <android/hardware/tests/pointer/1.0/IGraph.h>
+#include <hidl/Status.h>
+
+#include <hidl/MQDescriptor.h>
+namespace android {
+namespace hardware {
+namespace tests {
+namespace pointer {
+namespace V1_0 {
+namespace implementation {
+
+using ::android::hardware::tests::pointer::V1_0::IGraph;
+using ::android::hardware::Return;
+using ::android::hardware::Void;
+using ::android::hardware::hidl_vec;
+using ::android::hardware::hidl_string;
+using ::android::sp;
+
+struct Graph : public IGraph {
+ // Methods from ::android::hardware::tests::pointer::V1_0::IGraph follow.
+ Return<void> passANode(const IGraph::Node& n) override;
+ Return<void> passAGraph(const IGraph::Graph& g) override;
+ Return<void> passTwoGraphs(::android::hardware::tests::pointer::V1_0::IGraph::Graph const* g1, ::android::hardware::tests::pointer::V1_0::IGraph::Graph const* g2) override;
+ Return<void> giveAGraph(giveAGraph_cb _hidl_cb) override;
+ Return<void> passAGamma(const IGraph::Gamma& c) override;
+ Return<void> passASimpleRef(::android::hardware::tests::pointer::V1_0::IGraph::Alpha const* a) override;
+ Return<void> passASimpleRefS(::android::hardware::tests::pointer::V1_0::IGraph::Theta const* s) override;
+ Return<void> giveASimpleRef(giveASimpleRef_cb _hidl_cb) override;
+ Return<int32_t> getErrors() override;
+private:
+ std::vector<std::string> errors;
+
+};
+
+extern "C" IGraph* HIDL_FETCH_IGraph(const char* name);
+
+} // namespace implementation
+} // namespace V1_0
+} // namespace pointer
+} // namespace tests
+} // namespace hardware
+} // namespace android
+
+#endif // HIDL_GENERATED_android_hardware_tests_pointer_V1_0_Graph_H_