support legacy hal, and basic spec for wifi hal

Change-Id: I10dc64ab03ad90930ec66eaba5798997605f771a
diff --git a/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp b/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp
index 58f0129..2ca4eaa 100644
--- a/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp
+++ b/sysfuzzer/common/fuzz_tester/FuzzerBase.cpp
@@ -30,7 +30,8 @@
 namespace android {
 namespace vts {
 
-FuzzerBase::FuzzerBase() {}
+FuzzerBase::FuzzerBase(int target_class)
+    : target_class_(target_class) {}
 
 
 FuzzerBase::~FuzzerBase() {}
@@ -39,7 +40,11 @@
 bool FuzzerBase::LoadTargetComponent(const char* target_dll_path) {
   target_dll_path_ = target_dll_path;
   if (!target_loader_.Load(target_dll_path_)) return false;
-  return (device_ = target_loader_.GetHWDevice()) != NULL;
+  if (target_class_ != LEGACY_HAL) {
+    return (device_ = target_loader_.GetHWDevice()) != NULL;
+  } else {
+    return true;
+  }
 }
 
 
@@ -58,6 +63,5 @@
   return true;
 }
 
-
 }  // namespace vts
 }  // namespace android
diff --git a/sysfuzzer/common/fuzz_tester/FuzzerBase.h b/sysfuzzer/common/fuzz_tester/FuzzerBase.h
index b14cb14..d92f4b2 100644
--- a/sysfuzzer/common/fuzz_tester/FuzzerBase.h
+++ b/sysfuzzer/common/fuzz_tester/FuzzerBase.h
@@ -29,7 +29,7 @@
 
 class FuzzerBase {
  public:
-  FuzzerBase();
+  FuzzerBase(int target_class);
   virtual ~FuzzerBase();
 
   // Loads a target component where the argument is the file path.
@@ -52,15 +52,18 @@
   // a pointer to a HAL data structure of the loaded component.
   struct hw_device_t* device_;
 
+  // DLL Loader class.
+  DllLoader target_loader_;
+
  private:
   // a pointer to the string which contains the loaded component.
   const char* target_dll_path_;
 
-  // DLL Loader class.
-  DllLoader target_loader_;
-
   // function name prefix.
   const char* function_name_prefix_;
+
+  // target class
+  const int target_class_;
 };
 
 }  // namespace vts