Home | History | Annotate | Download | only in apitest
      1 /*
      2  * Copyright (C) 2016 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 package com.android.car.apitest;
     17 
     18 import android.car.VehicleSeat;
     19 import android.test.AndroidTestCase;
     20 import android.test.suitebuilder.annotation.SmallTest;
     21 
     22 import com.android.car.vehiclenetwork.VehicleNetworkConsts;
     23 
     24 @SmallTest
     25 public class VehicleSeatTest extends AndroidTestCase {
     26 
     27     public void testMatchWithVehicleHal() {
     28         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_DRIVER_LHD,
     29                 VehicleSeat.SEAT_DRIVER_LHD);
     30         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_DRIVER_RHD,
     31                 VehicleSeat.SEAT_DRIVER_RHD);
     32         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_1_PASSENGER_LEFT,
     33                 VehicleSeat.SEAT_ROW_1_PASSENGER_LEFT);
     34         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_1_PASSENGER_CENTER,
     35                 VehicleSeat.SEAT_ROW_1_PASSENGER_CENTER);
     36         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_1_PASSENGER_RIGHT,
     37                 VehicleSeat.SEAT_ROW_1_PASSENGER_RIGHT);
     38         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_2_PASSENGER_LEFT,
     39                 VehicleSeat.SEAT_ROW_2_PASSENGER_LEFT);
     40         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_2_PASSENGER_CENTER,
     41                 VehicleSeat.SEAT_ROW_2_PASSENGER_CENTER);
     42         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_2_PASSENGER_RIGHT,
     43                 VehicleSeat.SEAT_ROW_2_PASSENGER_RIGHT);
     44         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_3_PASSENGER_LEFT,
     45                 VehicleSeat.SEAT_ROW_3_PASSENGER_LEFT);
     46         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_3_PASSENGER_CENTER,
     47                 VehicleSeat.SEAT_ROW_3_PASSENGER_CENTER);
     48         assertEquals(VehicleNetworkConsts.VehicleSeat.VEHICLE_SEAT_ROW_3_PASSENGER_RIGHT,
     49                 VehicleSeat.SEAT_ROW_3_PASSENGER_RIGHT);
     50     }
     51 }
     52 
     53 
     54