1f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills/*
2f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * Copyright (C) 2015 The Android Open Source Project
3f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills *
4f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * Licensed under the Apache License, Version 2.0 (the "License");
5f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * you may not use this file except in compliance with the License.
6f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * You may obtain a copy of the License at
7f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills *
8f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills *      http://www.apache.org/licenses/LICENSE-2.0
9f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills *
10f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * Unless required by applicable law or agreed to in writing, software
11f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * distributed under the License is distributed on an "AS IS" BASIS,
12f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills * See the License for the specific language governing permissions and
14a8367288377cbaed6371256ca837b7aa22280706Mitchell Wills * limitations under the License.
15f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills */
16f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills
17a8367288377cbaed6371256ca837b7aa22280706Mitchell Willspackage com.android.server.wifi.scanner;
18f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills
197e3e85327ca82a83de84b4750e793f2e3d1b3bfcMitchell Willsimport static com.android.server.wifi.ScanTestUtil.setupMockChannels;
207e3e85327ca82a83de84b4750e793f2e3d1b3bfcMitchell Wills
21f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Willsimport android.test.suitebuilder.annotation.SmallTest;
22f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills
23f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Willsimport org.junit.Before;
24f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills
25f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills/**
26a8367288377cbaed6371256ca837b7aa22280706Mitchell Wills * Unit tests for {@link com.android.server.wifi.scanner.HalWifiScannerImpl}.
27f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills */
28f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills@SmallTest
295fa6221c4e507cbc596b6de77d793ec08d690157Mitchell Willspublic class HalWifiScannerTest extends BaseWifiScannerImplTest {
30f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills
31f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills    @Before
32f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills    public void setUp() throws Exception {
337e3e85327ca82a83de84b4750e793f2e3d1b3bfcMitchell Wills        setupMockChannels(mWifiNative,
347e3e85327ca82a83de84b4750e793f2e3d1b3bfcMitchell Wills                new int[]{2400, 2450},
357e3e85327ca82a83de84b4750e793f2e3d1b3bfcMitchell Wills                new int[]{5150, 5175},
367e3e85327ca82a83de84b4750e793f2e3d1b3bfcMitchell Wills                new int[]{5600, 5650});
37ee0ab818341d44614ffe56ae73ecc08b974c2cbbRoshan Pius        mScanner = new HalWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock);
38f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills    }
39f2f6f79242454ff9161f5af772292fa0180436f8Mitchell Wills}
40