Build api.c against the fake arch.
In order to have unit test, it at least needs to build so and the arch
interfaces and implement enough of the fake arch to make that happen.
Change-Id: I180885cedeef9e0323065cbe949f3d4161af3345
diff --git a/src/api_test.cc b/src/api_test.cc
new file mode 100644
index 0000000..fb6b8cb
--- /dev/null
+++ b/src/api_test.cc
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2018 Google LLC
+ *
+ * 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
+ *
+ * https://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.
+ */
+
+extern "C" {
+#include "hf/api.h"
+}
+
+#include <gmock/gmock.h>
+
+namespace
+{
+using ::testing::Eq;
+
+TEST(api, vm_get_count)
+{
+ EXPECT_THAT(api_vm_get_count(), Eq(0));
+}
+
+} /* namespace */