Home | History | Annotate | Download | only in vintf
      1 /*
      2  * Copyright (C) 2018 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef VTS_TREBLE_VINTF_TEST_SYSTEM_VENDOR_TEST_H_
     18 #define VTS_TREBLE_VINTF_TEST_SYSTEM_VENDOR_TEST_H_
     19 #include "VtsTrebleVintfTestBase.h"
     20 
     21 #include <gtest/gtest.h>
     22 
     23 namespace android {
     24 namespace vintf {
     25 namespace testing {
     26 
     27 // Tests the compatibility / deprecation / etc. between framework and
     28 // device manifest.
     29 class SystemVendorTest : public VtsTrebleVintfTestBase {
     30  public:
     31   virtual ~SystemVendorTest() {}
     32   virtual void SetUp() override {
     33     VtsTrebleVintfTestBase::SetUp();
     34 
     35     vendor_manifest_ = VintfObject::GetDeviceHalManifest();
     36     ASSERT_NE(vendor_manifest_, nullptr)
     37         << "Failed to get vendor HAL manifest." << endl;
     38 
     39     fwk_manifest_ = VintfObject::GetFrameworkHalManifest();
     40     ASSERT_NE(fwk_manifest_, nullptr)
     41         << "Failed to get framework HAL manifest." << endl;
     42   }
     43 
     44   HalManifestPtr vendor_manifest_;
     45   HalManifestPtr fwk_manifest_;
     46 };
     47 
     48 }  // namespace testing
     49 }  // namespace vintf
     50 }  // namespace android
     51 
     52 #endif  // VTS_TREBLE_VINTF_TEST_SYSTEM_VENDOR_TEST_H_
     53