diff --git a/configstore/1.1/vts/functional/Android.bp b/configstore/1.1/vts/functional/Android.bp new file mode 100644 index 0000000000..5cfa4839d9 --- /dev/null +++ b/configstore/1.1/vts/functional/Android.bp @@ -0,0 +1,34 @@ +// +// 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. +// + +cc_test { + name: "VtsHalConfigstoreV1_1TargetTest", + defaults: ["hidl_defaults"], + srcs: ["VtsHalConfigstoreV1_1TargetTest.cpp"], + shared_libs: [ + "libbase", + "libhidlbase", + "liblog", + "libutils", + "android.hardware.configstore@1.1", + ], + static_libs: ["VtsHalHidlTargetTestBase"], + cflags: [ + "-O0", + "-g", + ] +} + diff --git a/configstore/1.1/vts/functional/VtsHalConfigstoreV1_1TargetTest.cpp b/configstore/1.1/vts/functional/VtsHalConfigstoreV1_1TargetTest.cpp new file mode 100644 index 0000000000..bd3da4c433 --- /dev/null +++ b/configstore/1.1/vts/functional/VtsHalConfigstoreV1_1TargetTest.cpp @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#define LOG_TAG "ConfigstoreHidlHalTest" + +#include +#include +#include +#include +#include + +using ::android::hardware::configstore::V1_1::ISurfaceFlingerConfigs; +using ::android::sp; + +#define ASSERT_OK(ret) ASSERT_TRUE(ret.isOk()) +#define EXPECT_OK(ret) EXPECT_TRUE(ret.isOk()) + +class ConfigstoreHidlTest : public ::testing::VtsHalHidlTargetTestBase { + public: + sp sfConfigs; + + virtual void SetUp() override { + sfConfigs = ::testing::VtsHalHidlTargetTestBase::getService(); + ASSERT_NE(sfConfigs, nullptr); + } + + virtual void TearDown() override {} +}; + +/** + * Placeholder testcase. + */ +TEST_F(ConfigstoreHidlTest, Test) { + ASSERT_TRUE(true); +} + +int main(int argc, char** argv) { + ::testing::InitGoogleTest(&argc, argv); + int status = RUN_ALL_TESTS(); + LOG(INFO) << "Test result = " << status; + return status; +} diff --git a/configstore/Android.bp b/configstore/Android.bp index 21dc2b4b1e..4a783c3d7e 100644 --- a/configstore/Android.bp +++ b/configstore/Android.bp @@ -3,5 +3,6 @@ subdirs = [ "1.0", "1.0/vts/functional", "1.1", + "1.1/vts/functional", "utils", ]