1/****************************************************************************** 2 * 3 * Copyright (C) 2014 Google, Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19#include "base.h" 20#include "cases/cases.h" 21 22TEST_CASE_DECL(adapter_enable_disable); 23TEST_CASE_DECL(adapter_repeated_enable_disable); 24TEST_CASE_DECL(adapter_set_name); 25TEST_CASE_DECL(adapter_get_name); 26TEST_CASE_DECL(adapter_start_discovery); 27TEST_CASE_DECL(adapter_cancel_discovery); 28 29TEST_CASE_DECL(pan_enable); 30TEST_CASE_DECL(pan_connect); 31TEST_CASE_DECL(pan_disconnect); 32TEST_CASE_DECL(pan_quick_reconnect); 33 34// These are run with the Bluetooth adapter disabled. 35const test_case_t sanity_suite[] = { 36 TEST_CASE(adapter_enable_disable), 37 TEST_CASE(adapter_repeated_enable_disable), 38}; 39 40// The normal test suite is run with the adapter enabled. 41const test_case_t test_suite[] = { 42 TEST_CASE(adapter_set_name), 43 TEST_CASE(adapter_get_name), 44 TEST_CASE(adapter_start_discovery), 45 TEST_CASE(adapter_cancel_discovery), 46 47 TEST_CASE(pan_enable), 48 TEST_CASE(pan_connect), 49 TEST_CASE(pan_disconnect), 50}; 51 52const size_t sanity_suite_size = ARRAY_SIZE(sanity_suite); 53const size_t test_suite_size = ARRAY_SIZE(test_suite); 54