| # Copyright 2020 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/features.gni") |
| |
| static_library("invalidations") { |
| sources = [ |
| "fcm_handler.cc", |
| "fcm_handler.h", |
| "fcm_registration_token_observer.h", |
| "interested_data_types_manager.cc", |
| "interested_data_types_manager.h", |
| "interested_data_types_observer.h", |
| "invalidations_listener.h", |
| "switches.cc", |
| "switches.h", |
| "sync_invalidations_service.h", |
| "sync_invalidations_service_impl.cc", |
| "sync_invalidations_service_impl.h", |
| ] |
| |
| public_deps = [ |
| "//base", |
| "//components/gcm_driver", |
| "//components/keyed_service/core", |
| "//components/sync/base", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| sources = [ |
| "mock_sync_invalidations_service.cc", |
| "mock_sync_invalidations_service.h", |
| ] |
| |
| public_deps = [ "//components/sync/invalidations" ] |
| |
| deps = [ "//testing/gmock" ] |
| } |