Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 755fa5d0 authored by Yu Shan's avatar Yu Shan Committed by Android (Google) Code Review
Browse files

Merge "Migrate VHAL default config to AIDL."

parents dc50c859 379c33ca
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
{
  "presubmit": [
    {
      "name": "VehicleHalVehicleUtilsTest"
      "name": "VehicleHalAidlHidlCompatibilityTest"
    },
    {
      "name": "VehicleHalAidlHidlCompatibilityTest"
      "name": "VehicleHalDefaultConfigTest"
    },
    {
      "name": "VehicleHalVehicleUtilsTest"
    }
  ]
}
+31 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 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.
 */

package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_library_headers {
    name: "VehicleHalDefaultConfig",
    vendor: true,
    local_include_dirs: ["include"],
    export_include_dirs: ["include"],
    defaults: ["VehicleHalDefaults"],
    static_libs: ["VehicleHalUtils"],
    header_libs: ["VehicleHalTestUtilHeaders"],
    export_static_lib_headers: ["VehicleHalUtils"],
    export_header_lib_headers: ["VehicleHalTestUtilHeaders"],
}
+1286 −0

File added.

Preview size limit exceeded, changes collapsed.

+34 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 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.
 */

package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_test {
    name: "VehicleHalDefaultConfigTest",
    vendor: true,
    defaults: ["VehicleHalDefaults"],
    srcs: ["*.cpp"],
    static_libs: [
        "VehicleHalUtils",
        "libgtest",
    ],
    header_libs: [
        "VehicleHalDefaultConfig",
    ],
    test_suites: ["general-tests"],
}
+39 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2021 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.
 */

#include <DefaultConfig.h>
#include <VehicleUtils.h>
#include <gtest/gtest.h>

namespace android {
namespace hardware {
namespace automotive {
namespace vehicle {

namespace test {

TEST(DefaultConfigTest, loadDefaultConfigs) {
    for (ConfigDeclaration config : kVehicleProperties) {
        ASSERT_NE(0, config.config.prop);
    }
}

}  // namespace test

}  // namespace vehicle
}  // namespace automotive
}  // namespace hardware
}  // namespace android