1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_chromeos, "Quick Pair protocols (e.g. Fast Pair) are ash-chrome only")
static_library("feature_status_tracker") {
sources = [
"base_enabled_provider.cc",
"base_enabled_provider.h",
"battery_saver_active_provider.cc",
"battery_saver_active_provider.h",
"bluetooth_enabled_provider.cc",
"bluetooth_enabled_provider.h",
"fast_pair_enabled_provider.cc",
"fast_pair_enabled_provider.h",
"fast_pair_pref_enabled_provider.cc",
"fast_pair_pref_enabled_provider.h",
"fast_pair_support_utils.cc",
"fast_pair_support_utils.h",
"google_api_key_availability_provider.cc",
"google_api_key_availability_provider.h",
"hardware_offloading_supported_provider.cc",
"hardware_offloading_supported_provider.h",
"logged_in_user_enabled_provider.cc",
"logged_in_user_enabled_provider.h",
"power_connected_provider.cc",
"power_connected_provider.h",
"quick_pair_feature_status_tracker.h",
"quick_pair_feature_status_tracker_impl.cc",
"quick_pair_feature_status_tracker_impl.h",
"scanning_enabled_provider.cc",
"scanning_enabled_provider.h",
"screen_state_enabled_provider.cc",
"screen_state_enabled_provider.h",
]
deps = [
"//ash/constants",
"//ash/public/cpp",
"//ash/quick_pair/common",
"//base",
"//components/cross_device/logging:logging",
"//components/prefs",
"//device/bluetooth",
"//google_apis",
"//skia",
"//ui/display",
"//ui/display/manager",
]
}
static_library("test_support") {
testonly = true
sources = [
"fake_feature_status_tracker.cc",
"fake_feature_status_tracker.h",
"mock_battery_saver_active_provider.cc",
"mock_battery_saver_active_provider.h",
"mock_bluetooth_enabled_provider.cc",
"mock_bluetooth_enabled_provider.h",
"mock_fast_pair_pref_enabled_provider.cc",
"mock_fast_pair_pref_enabled_provider.h",
"mock_google_api_key_availability_provider.cc",
"mock_google_api_key_availability_provider.h",
"mock_hardware_offloading_supported_provider.cc",
"mock_hardware_offloading_supported_provider.h",
"mock_logged_in_user_enabled_provider.cc",
"mock_logged_in_user_enabled_provider.h",
"mock_power_connected_provider.cc",
"mock_power_connected_provider.h",
"mock_quick_pair_feature_status_tracker.cc",
"mock_quick_pair_feature_status_tracker.h",
"mock_scanning_enabled_provider.cc",
"mock_scanning_enabled_provider.h",
"mock_screen_state_enabled_provider.cc",
"mock_screen_state_enabled_provider.h",
"quick_pair_feature_status_tracker.h",
]
deps = [
":feature_status_tracker",
"//ash/quick_pair/common",
"//ash/quick_pair/common:test_support",
"//base/test:test_support",
"//device/bluetooth:mocks",
"//skia",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"base_enabled_provider_unittest.cc",
"battery_saver_active_provider_unittest.cc",
"bluetooth_enabled_provider_unittest.cc",
"fast_pair_enabled_provider_unittest.cc",
"fast_pair_support_utils_unittest.cc",
"hardware_offloading_supported_provider_unittest.cc",
"logged_in_user_enabled_provider_unittest.cc",
"power_connected_provider_unittest.cc",
"scanning_enabled_provider_unittest.cc",
"screen_state_enabled_provider_unittest.cc",
]
deps = [
":feature_status_tracker",
":test_support",
"//ash:test_support",
"//ash/constants",
"//ash/quick_pair/common",
"//ash/quick_pair/common:test_support",
"//base/test:test_support",
"//device/bluetooth",
"//device/bluetooth:mocks",
"//skia",
"//testing/gtest",
"//ui/display:test_support",
]
}
|